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

Bug 366152

Summary: NullPointerException when presenting ReqIf model that doesn't contain ProR tool extensions
Product: [Modeling] MDT.RMF Reporter: Mark Broerkens <eclipse>
Component: ProRAssignee: Michael Jastram <michael>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P1 CC: michael
Version: unspecified   
Target Milestone: m12.01   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Mark Broerkens CLA 2011-12-09 03:58:17 EST
A NullPointerException is thrown in case a reqif xml file without ProR tool extension information is presented. 

==== Where the failure occurs ====
	private ProrPresentationConfigurations getPresentationConfigurations(ReqIf rif) {
		ProrToolExtension uiExtension = ConfigurationUtil.getProrToolExtension(rif);
-->		ProrPresentationConfigurations configs = uiExtension
				.getPresentationConfigurations();
		return configs;
	}

==== Stack Trace ===
java.lang.NullPointerException
	at org.eclipse.rmf.pror.reqif10.presentation.ui.IDPresentationService.getPresentationConfigurations(IDPresentationService.java:140)
	at org.eclipse.rmf.pror.reqif10.presentation.ui.IDPresentationService.getConfigurationElements(IDPresentationService.java:127)
	at org.eclipse.rmf.pror.reqif10.presentation.ui.IDPresentationService.ensureAllConfigsHaveAdapters(IDPresentationService.java:68)
	at org.eclipse.rmf.pror.reqif10.presentation.ui.IDPresentationService.openReqif(IDPresentationService.java:52)
	at org.eclipse.rmf.pror.reqif10.presentation.service.PresentationManager.notifiyOpenReqif(PresentationManager.java:37)
	at org.eclipse.rmf.pror.reqif10.editor.presentation.Reqif10Editor.openRif(Reqif10Editor.java:1043)
	at org.eclipse.rmf.pror.reqif10.editor.presentation.Reqif10Editor.createPages(Reqif10Editor.java:992)
Comment 1 Michael Jastram CLA 2011-12-21 08:26:02 EST
See #364887
Comment 2 Michael Jastram CLA 2012-01-05 06:07:36 EST
Duplicate

*** This bug has been marked as a duplicate of bug 364887 ***
Comment 3 Michael Jastram CLA 2012-01-06 10:25:45 EST
Closed