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

Bug 358711

Summary: R4E Unable to create an anomaly from the editor
Product: z_Archived Reporter: Jacques Bouthillier <lmcbout>
Component: MylynAssignee: Sebastien Dubois <sebastien.dubois>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: alvaro.sanchez-leon
Version: unspecified   
Target Milestone: 0.9   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 358635    

Description Jacques Bouthillier CLA 2011-09-23 07:57:29 EDT
LINUX environment + window environment:
Create an anomaly from the editor. The anomaly will show in the Review. Then try a second time to add a new anomaly by selecting some code in the editor and the following error occurs:
Note: I tested with rules set if ever it changes anything:

!STACK 0
java.lang.NullPointerException
	at org.eclipse.mylyn.reviews.r4e.ui.internal.commands.NewAnomalyHandler.addAnomaly(NewAnomalyHandler.java:256)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.commands.NewAnomalyHandler.addAnomalyFromText(NewAnomalyHandler.java:139)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.commands.NewAnomalyHandler.execute(NewAnomalyHandler.java:94)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
	at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829)
	at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815)
Comment 1 Sebastien Dubois CLA 2011-09-23 11:11:52 EDT
This is a sidfe effect of bug 358635
Comment 2 Sebastien Dubois CLA 2011-09-23 15:03:01 EDT
The following problems are fixed:

- No more exceptions when adding anomalies
- Position is correctly set regardless from where the anomaly is created
- Class, Rank and Due date are set correctly
- The update Rule dialog shows and records the correct information