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

Bug 362910

Summary: [ui] NPE in AttributedPosition
Product: [Modeling] TMF Reporter: Karsten Thoms <karsten.thoms>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.1.0Flags: sebastian.zarnekow: juno+
Target Milestone: M4   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Karsten Thoms CLA 2011-11-04 10:19:40 EDT
In Attribute#createStyleRange() I faced a NPE after upgrading from 2.0.1 to 2.1.0. The instance variable 'attribute' is null.


Daemon Thread [Thread-1] (Suspended (exception NullPointerException))	
	AttributedPosition.createStyleRange() line: 48	
	HighlightingPresenter.applyTextPresentation(TextPresentation) line: 613	
	XtextSourceViewer(TextViewer).changeTextPresentation(TextPresentation, boolean) line: 4877	
	HighlightingPresenter.updatePresentation(TextPresentation, AttributedPosition[], AttributedPosition[]) line: 488	
	HighlightingPresenter$1.run() line: 370	
	RunnableLock.run() line: 35	
	UISynchronizer(Synchronizer).runAsyncMessages(boolean) line: 135	
	Display.runAsyncMessages(boolean) line: 3938	
	Display.readAndDispatch() line: 3615	
	Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 2696	
	Workbench.runUI() line: 2660	
	Workbench.access$4(Workbench) line: 2494	
	Workbench$7.run() line: 674	
	Realm.runWithDefault(Realm, Runnable) line: 332	
	Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 667	
	PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149	
	IDEApplication.start(IApplicationContext) line: 123	
	EclipseAppHandle.run(Object) line: 196	
	EclipseAppLauncher.runApplication(Object) line: 110	
	EclipseAppLauncher.start(Object) line: 79	
	EclipseStarter.run(Object) line: 344	
	EclipseStarter.run(String[], Runnable) line: 179	
	NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]	
	NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39	
	DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25	
	Method.invoke(Object, Object...) line: 597	
	Main.invokeFramework(String[], URL[]) line: 622	
	Main.basicRun(String[]) line: 577	
	Main.run(String[]) line: 1410	
	Main.main(String[]) line: 1386
Comment 1 Karsten Thoms CLA 2011-11-04 10:22:41 EDT
Git repo: https://code.google.com/a/eclipselabs.org/p/spray/
Tag: bug362910
Comment 2 Sebastian Zarnekow CLA 2011-11-17 09:49:51 EST
Pushed to master.
Comment 3 Karsten Thoms CLA 2017-09-19 17:54:43 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 18:05:39 EDT
Closing all bugs that were set to RESOLVED before Neon.0