Skip to content

Commit

Permalink
Fix NPE when calculateState (apache#9287)
Browse files Browse the repository at this point in the history
AlbumenJ authored Nov 17, 2021
1 parent 858f8a9 commit 2d1f1ef
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -960,7 +960,9 @@ private DeployState calculateState() {
int pending = 0, starting = 0, started = 0, stopping = 0, stopped = 0, failed = 0;
for (ModuleModel moduleModel : applicationModel.getModuleModels()) {
ModuleDeployer deployer = moduleModel.getDeployer();
if (deployer.isPending()) {
if (deployer == null) {
pending++;
} else if (deployer.isPending()) {
pending++;
} else if (deployer.isStarting()) {
starting++;

0 comments on commit 2d1f1ef

Please sign in to comment.