Skip to content
Snippets Groups Projects
Commit f7d6c7d2 authored by Goik Martin's avatar Goik Martin
Browse files

Resolving NPE

parent 7a2e1412
Branches
No related tags found
No related merge requests found
......@@ -49,15 +49,12 @@ class ModifyNodebbTopic {
* @return If a topic carrying the hdmId value exists, return its tid, else return a negative value.
*/
int hdmIdExists(final String hdmId) {
return existingHdmIds.get(hdmId);
/*
final Document res = objectCollection.find(eq("hdmId", hdmId)).first();
if (null == res) {
final Integer tid = existingHdmIds.get(hdmId);
if (null == tid) {
return -1;
} else {
return res.getInteger(tidAttrib);
return tid;
}
*/
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment