Commit b8763d52 authored by Petri Hintukainen's avatar Petri Hintukainen

Fix possible null pointer dereference

parent e455dc52
......@@ -147,6 +147,15 @@ public class BDJLoader {
AppID id = (AppID)ids.nextElement();
BDJAppProxy proxy = (BDJAppProxy)db.getAppProxy(id);
AppEntry entry = (AppEntry)db.getAppAttributes(id);
if (proxy == null) {
logger.error("AppsDatabase corrupted!");
continue;
}
if (entry == null) {
logger.error("AppsDatabase corrupted!");
proxy.release();
continue;
}
for (int i = 0; i < appTable.length; i++) {
if (id.equals(appTable[i].getIdentifier()) &&
entry.getInitialClass().equals(appTable[i].getInitialClass())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment