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

Bug 347957

Summary: RAP PDE Runtime: NullpointerException trying to open filter dialog
Product: [RT] RAP Reporter: Arnaud MERGEY <a_mergey>
Component: IncubatorAssignee: Project Inbox <rap.incubator-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.4   
Target Milestone: 2.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch allowing to display filters and open log dialogs
none
patch-v2: improved version, that also restore import/export platform log file
none
patch-v3 fixed version of the patch none

Description Arnaud MERGEY CLA 2011-06-01 11:05:59 EDT
Trying to open Filters... Dialog in order to filters messages in pde Error Log view, with org.eclipse.rap.pde.runtime plugin, I have NullpointerException (stack trace above)

I have a patch allowing to fix this. My patch allow also to open the platform logfile using the "Open Log" action on the Error Log view

java.lang.NullPointerException
at org.eclipse.pde.internal.runtime.logview.FilterDialog.createEventTypesGroup(FilterDialog.java:70)
at org.eclipse.pde.internal.runtime.logview.FilterDialog.createDialogArea(FilterDialog.java:52)
at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:745)
at org.eclipse.jface.window.Window.create(Window.java:443)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1071)
at org.eclipse.pde.internal.runtime.logview.LogView.handleFilter(LogView.java:560)
at org.eclipse.pde.internal.runtime.logview.LogView.access$10(LogView.java:557)
at org.eclipse.pde.internal.runtime.logview.LogView$7.run(LogView.java:296)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:493)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:575)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:492)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:403)
at org.eclipse.swt.internal.widgets.UntypedEventAdapter.dispatchEvent(UntypedEventAdapter.java:652)
at org.eclipse.swt.internal.widgets.UntypedEventAdapter.widgetSelected(UntypedEventAdapter.java:88)
at org.eclipse.swt.events.SelectionEvent.dispatchToObserver(SelectionEvent.java:196)
at org.eclipse.rwt.internal.events.Event.processEvent(Event.java:44)
at org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:163)
at org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.java:203)
at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1134)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1124)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2733)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:685)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
at com.semarchy.ui.commons.util.rcp.AbstractApplication.start(AbstractApplication.java:50)
at org.eclipse.rap.ui.internal.application.EntrypointApplicationWrapper.createUI(EntrypointApplicationWrapper.java:27)
at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:73)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:211)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:88)
at java.lang.Thread.run(Thread.java:662)
at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)
Comment 1 Arnaud MERGEY CLA 2011-06-01 11:07:16 EDT
Created attachment 197097 [details]
Patch allowing to display filters and open log dialogs
Comment 2 Arnaud MERGEY CLA 2011-06-05 12:45:29 EDT
Created attachment 197362 [details]
patch-v2: improved version, that also restore import/export platform log file
Comment 3 Arnaud MERGEY CLA 2011-06-05 14:18:00 EDT
Created attachment 197365 [details]
patch-v3 fixed version of the patch
Comment 4 Arnaud MERGEY CLA 2012-07-10 08:11:05 EDT
Fixed in master of new PDE Runtime component repository (http://git.eclipse.org/c/rap/incubator/org.eclipse.rap.incubator.pde.git/) 
with commit 0a49ed31cab7b03faa0637d921ac6eb9d4b97eed