Fixing the NPE in the application toString operation.

4.x.x
sinthuja 7 years ago
parent 692ed6aa59
commit 9ea3be060e

@ -213,7 +213,7 @@ public class Application {
this.user = user; this.user = user;
} }
public void setScreenShotCount (int screenShotCount) { public void setScreenShotCount(int screenShotCount) {
this.screenShotCount = screenShotCount; this.screenShotCount = screenShotCount;
} }
@ -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;
} }
} }

Loading…
Cancel
Save