Details
-
Bug
-
Resolution: Timed out
-
Low
-
2.3.4
-
Multiple User Environment
Firefox 3.6.x
-
1
-
Severity 3 - Minor
-
2
-
Description
NullPointerException can be reproduced in Firefox 3.6.7 by doing the following:
1. User A creates a review and adds comments. Assign's User B as the reviewer.
2. User B adds comments to the review.
3. In User A's screen, the notification pop-up comes up in the bottom right corner and the user click's Reload (in Firefox).
The following NPE is generated (full stack trace attached as well as screenshot):
java.lang.NullPointerException at com.cenqua.crucible.actions.RetrieveCommentsAjaxAction.generateComments(RetrieveCommentsAjaxAction.java:134) at com.cenqua.crucible.actions.RetrieveCommentsAjaxAction.execute(RetrieveCommentsAjaxAction.java:181)
The offending code is as follows:
if (inlineComments == null) { inlineComments = new HashSet<InlineComment>(); } inlineComments.add(inlineComment); frxsToRetrieve.put(inlineComment.getFrx(), inlineComments);
For some reason inlineComment is set to null.