Skip to content
Snippets Groups Projects
Commit 1728c4c1 authored by srosse's avatar srosse
Browse files

OO-1770 : fix NPE

parent ef4888f3
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ public class MessageLightView extends UserPropertiesRow implements MessageRef { ...@@ -46,7 +46,7 @@ public class MessageLightView extends UserPropertiesRow implements MessageRef {
private final boolean guest; private final boolean guest;
private final String pseudonym; private final String pseudonym;
private Long threadtopKey; private final Long threadtopKey;
private int depth; private int depth;
private int numOfChildren = 0; private int numOfChildren = 0;
...@@ -60,7 +60,7 @@ public class MessageLightView extends UserPropertiesRow implements MessageRef { ...@@ -60,7 +60,7 @@ public class MessageLightView extends UserPropertiesRow implements MessageRef {
pseudonym = message.getPseudonym(); pseudonym = message.getPseudonym();
lastModified = message.getLastModified(); lastModified = message.getLastModified();
parentKey = message.getParentKey(); parentKey = message.getParentKey();
threadtopKey = message.getThreadtop().getKey(); threadtopKey = message.getThreadtop() == null ? null : message.getThreadtop().getKey();
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment