Community
Participate
Working Groups
Using 3.4RC1, from bug 232787, a NPE was found in Martin's log: java.lang.NullPointerException at org.eclipse.ui.internal.views.log.EventDetailsDialog.updateProperties(EventDetailsDialog.java:344) at org.eclipse.ui.internal.views.log.EventDetailsDialog.createDialogArea(EventDetailsDialog.java:500) at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760) at org.eclipse.jface.window.Window.create(Window.java:431) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089) at org.eclipse.ui.internal.views.log.EventDetailsDialog.create(EventDetailsDialog.java:173) at org.eclipse.ui.internal.views.log.EventDetailsDialogAction.run(EventDetailsDialogAction.java:96) at org.eclipse.ui.internal.views.log.LogView$15.doubleClick(LogView.java:512) [...] No steps to reproduce so far.
Created attachment 100977 [details] .log file showing the exceptions I can reproduce the issue easily in my installation, by cleaning project "org.eclipse.tm.discovery.engine" such that the API Analysis builder re-builds and creates its NPE Entry in the Error Log according to bug 232787. When I dbl click on the Error Log Entry reading "Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". Now, the jface NPE is shown as a pop-up dialog, as well as added to my error log. .log file attached.
I get the same exception if I double-click an item on the Log Error View.
Jacek!
Ok I can reproduce. It's a side effect of bug 232041. As of that bug, we more closely check what is current log session and what is not. As a result now currentSession may be null if there was no any entries in log file. (because in that case there's simply no log session). But this bug shows that LogView can be tricked to think there's a log entry for null session. Fix is to get session from log, if we didn't have it (e.g. it not existed previously).
Created attachment 101078 [details] patch patch!
You need two reviewers.
marking contributed
Looks good, once Curtis approves I will commit. Those side-effects will get you at times when they are tricky to reproduce.
Weird. I received the email requesting the review, but I don't see my review request on the bugzilla page. +1 from me though.
done. > 20080520
*** Bug 233355 has been marked as a duplicate of this bug. ***