@@ -75,7 +75,7 @@ public String aboutUs(@RequestParam(name = "name", required = false, defaultValu
7575 ALL_FOOTER , FooterModel .class );
7676
7777
78- if (headerResp == null | aboutResp == null | footerResp == null ) {
78+ if (headerResp == null || aboutResp == null | | footerResp == null ) {
7979 model .addAttribute ("home" , "Could not fetch About page.." );
8080 } else {
8181 model .addAttribute (ABOUT , ABOUT );
@@ -112,7 +112,7 @@ public String blogs(Model model) {
112112 ALL_FOOTER , FooterModel .class );
113113
114114
115- if (headerResp == null | blogResp == null | archivedBlogsResp == null | allBlogListResp == null | footerResp == null ) {
115+ if (headerResp == null || blogResp == null || archivedBlogsResp == null || allBlogListResp == null | | footerResp == null ) {
116116 model .addAttribute ("home" , "Could not fetch Blog page.." );
117117 } else {
118118 model .addAttribute (BANNER , "blog" );
@@ -141,7 +141,7 @@ public String contact(Model model) {
141141 Object footerResp = contentstack .getQuery (queryString ,
142142 ALL_FOOTER , FooterModel .class );
143143
144- if (headerResp == null | footerResp == null | contactusResp == null ) {
144+ if (headerResp == null || footerResp == null | | contactusResp == null ) {
145145 model .addAttribute ("home" , "Could not fetch Contact page.." );
146146 } else {
147147 model .addAttribute (HEADER , headerResp );
@@ -170,7 +170,7 @@ public String blogPost(@PathVariable String id, Model model) {
170170 Object footerResp = contentstack .getQuery (queryString ,
171171 ALL_FOOTER , FooterModel .class );
172172
173- if (headerResp == null | blogPostResp == null | blogResp == null | footerResp == null ) {
173+ if (headerResp == null || blogPostResp == null || blogResp == null | | footerResp == null ) {
174174 model .addAttribute ("blog post" , "Could not fetch Blog post page.." );
175175 } else {
176176 model .addAttribute (BANNER , "blog" );
0 commit comments