Fixing the NPE in the application toString operation.

This commit is contained in:
sinthuja 2017-09-07 19:44:48 +05:30
parent 692ed6aa59
commit 9ea3be060e

View File

@ -223,7 +223,11 @@ public class Application {
@Override @Override
public String toString() { public String toString() {
return "UUID : " + uuid + "\tName : " + name + "\tShort Description : " String app = "UUID : " + uuid + "\tName : " + name + "\tShort Description : "
+ shortDescription + "\tLifecycle State : " + currentLifecycle.getLifecycleState(); + shortDescription;
if (currentLifecycle != null) {
app += "\tLifecycle State : " + currentLifecycle.getLifecycleState();
}
return app;
} }
} }