Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359591 - R4E model having a null pointer exception
Summary: R4E model having a null pointer exception
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.9   Edit
Assignee: Alvaro Sanchez-Leon CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-30 13:22 EDT by Jacques Bouthillier CLA
Modified: 2012-01-24 15:35 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacques Bouthillier CLA 2011-09-30 13:22:04 EDT
LINUX environment
 Occurs when I was creating a review, ???
Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".


java.lang.NullPointerException
	at org.eclipse.mylyn.reviews.r4e.core.model.serial.impl.R4EWriter.saveResource(R4EWriter.java:86)
	at org.eclipse.mylyn.reviews.r4e.core.model.serial.impl.ChangeResController.checkIn(ChangeResController.java:167)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.properties.tabbed.ReviewGroupTabPropertySection$1.focusLost(ReviewGroupTabPropertySection.java:215)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:143)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263)
	at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:3575)
	at org.eclipse.swt.widgets.Control.gtk_event_after(Control.java:2938)
	at org.eclipse.swt.widgets.Text.gtk_event_after(Text.java:1353)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1738)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:5016)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4408)
	at org.eclipse.swt.internal.gtk.OS._gtk_widget_grab_focus(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_widget_grab_focus(OS.java:12928)
Comment 1 Alvaro Sanchez-Leon CLA 2011-10-05 09:58:23 EDT
The issue seem to be related to a properties view not disabled after closing a Review group, 
so if the properties view is updated with new text while no review group is opened, the NPE will happen, 

the code was modified to include additional information during the checkout of an element not associated to a valid resource.

the latest version of R4E does not leave the properties view opened after closing a review group (Bug 359615)