summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
74ced99)
1. Added a null check against XacmlPdpActivator.getCurrent() method to
fix the following exception
Exception in thread "Timer-0" java.lang.NullPointerException
Change-Id: Ia6c7efc2bd317dd52e9e89dd4f9f59d9d66d0857
Issue-ID: POLICY-1703
Signed-off-by: Michael Mokry <michael.mokry@att.com>
PdpStatus status = new PdpStatus();
status.setName(pdpName);
PdpStatus status = new PdpStatus();
status.setName(pdpName);
- if (XacmlPdpActivator.getCurrent().isAlive()) {
+ if (XacmlPdpActivator.getCurrent() != null && XacmlPdpActivator.getCurrent().isAlive()) {
status.setHealthy(PdpHealthStatus.HEALTHY);
} else {
status.setHealthy(PdpHealthStatus.NOT_HEALTHY);
status.setHealthy(PdpHealthStatus.HEALTHY);
} else {
status.setHealthy(PdpHealthStatus.NOT_HEALTHY);