Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 406734

Summary: NPE in StubUtility.getLineDelimiterUsed
Product: [Eclipse Project] JDT Reporter: Alexander Gurov <a.gurov>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Alexander Gurov CLA 2013-04-27 13:58:17 EDT
What steps will reproduce the problem?
1. Editing *.java files from Synchronize View's compare editor
2. 
3. 


-- Error Details --
Date: Sat Apr 27 20:54:57 EEST 2013
Message: Unexpected runtime error while computing a text hover
Severity: Error
Product: Eclipse Platform 4.2.0.v201206081400 (org.eclipse.platform.ide)
Plugin: org.eclipse.jface.text
Session Data:
eclipse.buildId=I20120608-1400
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU
Command-line arguments:  -os win32 -ws win32 -arch x86

Exception Stack Trace:
java.lang.NullPointerException
	at org.eclipse.jdt.internal.corext.codemanipulation.StubUtility.getLineDelimiterUsed(StubUtility.java:823)
	at org.eclipse.jdt.internal.ui.text.java.hover.JavaSourceHover.getBracketHoverInfo(JavaSourceHover.java:141)
	at org.eclipse.jdt.internal.ui.text.java.hover.JavaSourceHover.getHoverInfo(JavaSourceHover.java:96)
	at org.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover.getHoverInfo2(AbstractJavaEditorTextHover.java:84)
	at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
	at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:129)
	at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:85)
	at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
Comment 1 Dani Megert CLA 2013-04-29 03:24:23 EDT

*** This bug has been marked as a duplicate of bug 384543 ***