@@ -75,7 +75,7 @@ public String aboutUs(@RequestParam(name = "name", required = false, defaultValu
75
75
ALL_FOOTER , FooterModel .class );
76
76
77
77
78
- if (headerResp == null | aboutResp == null | footerResp == null ) {
78
+ if (headerResp == null || aboutResp == null | | footerResp == null ) {
79
79
model .addAttribute ("home" , "Could not fetch About page.." );
80
80
} else {
81
81
model .addAttribute (ABOUT , ABOUT );
@@ -112,7 +112,7 @@ public String blogs(Model model) {
112
112
ALL_FOOTER , FooterModel .class );
113
113
114
114
115
- if (headerResp == null | blogResp == null | archivedBlogsResp == null | allBlogListResp == null | footerResp == null ) {
115
+ if (headerResp == null || blogResp == null || archivedBlogsResp == null || allBlogListResp == null | | footerResp == null ) {
116
116
model .addAttribute ("home" , "Could not fetch Blog page.." );
117
117
} else {
118
118
model .addAttribute (BANNER , "blog" );
@@ -141,7 +141,7 @@ public String contact(Model model) {
141
141
Object footerResp = contentstack .getQuery (queryString ,
142
142
ALL_FOOTER , FooterModel .class );
143
143
144
- if (headerResp == null | footerResp == null | contactusResp == null ) {
144
+ if (headerResp == null || footerResp == null | | contactusResp == null ) {
145
145
model .addAttribute ("home" , "Could not fetch Contact page.." );
146
146
} else {
147
147
model .addAttribute (HEADER , headerResp );
@@ -170,7 +170,7 @@ public String blogPost(@PathVariable String id, Model model) {
170
170
Object footerResp = contentstack .getQuery (queryString ,
171
171
ALL_FOOTER , FooterModel .class );
172
172
173
- if (headerResp == null | blogPostResp == null | blogResp == null | footerResp == null ) {
173
+ if (headerResp == null || blogPostResp == null || blogResp == null | | footerResp == null ) {
174
174
model .addAttribute ("blog post" , "Could not fetch Blog post page.." );
175
175
} else {
176
176
model .addAttribute (BANNER , "blog" );
0 commit comments