Fix compile time NPE which is encountered in Eclipse IDE
Change-Id: Id447967ad6c7c68f4a6e5c562e7245029a89902f
Showing
1 changed file
with
1 additions
and
2 deletions
... | @@ -151,8 +151,7 @@ public class NetworkConfigWebResource extends AbstractWebResource { | ... | @@ -151,8 +151,7 @@ public class NetworkConfigWebResource extends AbstractWebResource { |
151 | Class configClass = | 151 | Class configClass = |
152 | nullIsNotFound(service.getConfigClass(subjectClassKey, configKey), | 152 | nullIsNotFound(service.getConfigClass(subjectClassKey, configKey), |
153 | configKeyNotFoundErrorString(subjectClassKey, subjectKey, configKey)); | 153 | configKeyNotFoundErrorString(subjectClassKey, subjectKey, configKey)); |
154 | - Config config = | 154 | + Config config = nullIsNotFound((Config) service.getConfig(subject, configClass), |
155 | - (Config) nullIsNotFound(service.getConfig(subject, configClass), | ||
156 | configKeyNotFoundErrorString(subjectClassKey, | 155 | configKeyNotFoundErrorString(subjectClassKey, |
157 | subjectKey, | 156 | subjectKey, |
158 | configKey)); | 157 | configKey)); | ... | ... |
-
Please register or login to post a comment