mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing the NPE in the application toString operation.
This commit is contained in:
parent
692ed6aa59
commit
9ea3be060e
@ -213,7 +213,7 @@ public class Application {
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
public void setScreenShotCount (int screenShotCount) {
|
||||
public void setScreenShotCount(int screenShotCount) {
|
||||
this.screenShotCount = screenShotCount;
|
||||
}
|
||||
|
||||
@ -223,7 +223,11 @@ public class Application {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "UUID : " + uuid + "\tName : " + name + "\tShort Description : "
|
||||
+ shortDescription + "\tLifecycle State : " + currentLifecycle.getLifecycleState();
|
||||
String app = "UUID : " + uuid + "\tName : " + name + "\tShort Description : "
|
||||
+ shortDescription;
|
||||
if (currentLifecycle != null) {
|
||||
app += "\tLifecycle State : " + currentLifecycle.getLifecycleState();
|
||||
}
|
||||
return app;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user