Skip to content

Commit

Permalink
NullPointerException bugfix related to #1632 (#1678)
Browse files Browse the repository at this point in the history
PAYARA-1764
  • Loading branch information
abbas-v1 authored and smillidge committed Jun 19, 2017
1 parent 4b2c968 commit 8fc3d5b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,10 @@ private List<WebModule> getWebModules(ApplicationInfo appInfo) {
EngineRef engineRef = moduleInfo.getEngineRefForContainer(WebContainer.class);
if (engineRef != null) {
WebApplication webApplication = (WebApplication) engineRef.getApplicationContainer();
for (WebModule module : webApplication.getWebModules()) {
webModules.add(module);
if (webApplication != null) {
for (WebModule module : webApplication.getWebModules()) {
webModules.add(module);
}
}
}
}
Expand Down

0 comments on commit 8fc3d5b

Please sign in to comment.