Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362910 - [ui] NPE in AttributedPosition
Summary: [ui] NPE in AttributedPosition
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.1.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 10:19 EDT by Karsten Thoms CLA
Modified: 2017-09-19 18:05 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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