Fix "NullPointerException" issue
Fix always evaluate to "false" issue
Issue-ID: DMAAP-894
Change-Id: I2a9cf4cc94631bd8f0042ef3f4f10450adb0876f
Signed-off-by: Parshad Patel <pars.patel@samsung.com>
private static AAFAuthn<?> aafAuthn;
private static AbsAAFLur<AAFPermission> aafLur;
- private static boolean props_ok = false;
-
private static final Logger logger = LoggerFactory.getLogger(Cadi3AAFProvider.class);
public Cadi3AAFProvider() {
logger.error("Unable to load " + CADI_PROPERTIES);
logger.error("Error", e);
}
-
- props_ok = true;
- if (props_ok == false) {
- return;
- }
}
if (aafAuthn == null) {
aafAuthn = null;
if (access != null)
access.log(e, "Failed to initialize AAF");
- props_ok = false;
}
}
logger.info("^Event Received for topic " + topicName + " , User " + fullName + " , action = " + action);
}
- if (fullName.equals("admin")) {
+ if (null != fullName && fullName.equals("admin")) {
return true;
}