Skip to content

Commit

Permalink
Null check for app location for dynamic reloader (payara#2195)
Browse files Browse the repository at this point in the history
  • Loading branch information
lprimak committed Dec 7, 2017
1 parent eb97256 commit 220e877
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
// Portions Copyright [2016-2017] [Payara Foundation and/or its affiliates]

package com.sun.enterprise.v3.server;

Expand Down Expand Up @@ -184,8 +185,9 @@ private synchronized List<AppReloadInfo> chooseAppsToReload() throws URISyntaxEx
for (ApplicationName m : applications.getModules()) {
if (m instanceof Application) {
Application app = (Application) m;
if (Boolean.valueOf(app.getDeployProperties().getProperty
if (app.getLocation() == null || Boolean.valueOf(app.getDeployProperties().getProperty
(ServerTags.IS_LIFECYCLE))) {
// skip apps without a location
// skip lifecycle modules
continue;
}
Expand Down

0 comments on commit 220e877

Please sign in to comment.