Bug 215324

Summary: Possible NPE in TextMergeViewer
Product: [Eclipse Project] Platform Reporter: Tomasz Zarna <tomasz.zarna>
Component: CompareAssignee: Platform-Compare-Inbox <platform-compare-inbox>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3    
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tomasz Zarna CLA 2008-01-15 05:19:30 EST
In line 491 a null pointer is dereferenced (fElement is null). This will lead to a NullPointerException when the code is executed.
Comment 1 Tomasz Zarna CLA 2008-01-15 06:00:41 EST
The code snippet (part of internalSetDocument method):

<...>
} else if (fElement == null) {	// deletion on one side <LINE 465>
   <...>
   if (parent instanceof IDocumentRange) {
      <...>
      if (range == null) {
         <...>
      }
   } else if (parent instanceof IDocument) {
      newDocument= ((IDocumentRange)fElement).getDocument(); <LINE 491>
   }
}
<...>
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:11:21 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.