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

Bug 268757

Summary: Filter Wizard - Use existing Filter class NPE
Product: [WebTools] WTP Java EE Tools Reporter: Milen Manov <milen.manov>
Component: jst.servletAssignee: Kaloyan Raev <kaloyan>
Status: RESOLVED DUPLICATE QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: kaloyan
Version: 3.0.4   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch none

Description Milen Manov CLA 2009-03-16 07:32:57 EDT
Build ID: M20090211-1700

Steps To Reproduce:
I am executing the following scenario:
                                      
1. Create Web 2.5 Project             
2. Create Filter                      
3. Start again Filter wizard          
4. Set Filter name and package        
5. Use existing Filter class checkbox 
6. Browse the Filter from step 2      
7. Press Next                         
8. Change Name                        
9. Finish                             


NPE

More information:
java.lang.NullPointerException                                          
at org.eclipse.jst.servlet.ui.internal.wizard.NewWebArtifactWizard.openJ
avaClass(NewWebArtifactWizard.java:73)                                  
at org.eclipse.jst.servlet.ui.internal.wizard.AddFilterWizard.postPerfor
mFinish(AddFilterWizard.java:82)                                        
at org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWiza
rd.performFinish(DataModelWizard.java:195)                              
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java
:742)                                                                   
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java
:373)                                                                   
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)   
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
228)                                                                    
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)     
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)           
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823) 
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)   
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)        
at org.eclipse.jface.window.Window.open(Window.java:801)                
at org.eclipse.ui.internal.navigator.wizards.WizardShortcutAction.run(Wi
zardShortcutAction.java:94)                                             
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)        
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:583)                                       
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContri
butionItem.java:500)                                                    
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionC
ontributionItem.java:411)                                               
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)     
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)           
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823) 
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)   
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
Comment 1 Milen Manov CLA 2009-03-16 07:33:38 EDT
Created attachment 128903 [details]
patch

I propose the following patch
Comment 2 Kaloyan Raev CLA 2009-03-24 09:42:56 EDT
This bug was fixed with the code changes done in bug 238770. 

*** This bug has been marked as a duplicate of bug 238770 ***