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

Bug 13154

Summary: CVS project property page NPE
Product: [Eclipse Project] Platform Reporter: Martin Aeschlimann <martinae>
Component: TeamAssignee: Kevin McGuire <Kevin_McGuire>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Martin Aeschlimann CLA 2002-04-10 05:10:54 EDT
20020409
1. create a java project
2. go to the project's property page, CVS
3. A page that contains only empty fields, and empty labels is shown, empty 
combobox
4. Type in some values, press apply -> NPE
5. If a project is not connected, no property page should be shown

java.lang.NullPointerException
	at org.eclipse.team.internal.ccvs.ui.CVSPropertiesPage.performOk
(CVSPropertiesPage.java:260)
	at org.eclipse.jface.preference.PreferencePage.performApply
(PreferencePage.java:367)
	at org.eclipse.jface.preference.PreferencePage$2.widgetSelected
(PreferencePage.java:240)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java
(Compiled Code))
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.jface.window.Window.runEventLoop(Window.java(Compiled 
Code))
	at org.eclipse.jface.window.Window.open(Window.java:525)
	at org.eclipse.ui.dialogs.PropertyDialogAction.run
(PropertyDialogAction.java:159)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:590)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:361)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:819)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:777)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:190)
	at org.eclipse.core.launcher.Main.run(Main.java:549)
	at org.eclipse.core.launcher.UIMain.main(UIMain.java:52)
">
Comment 1 James Moody CLA 2002-04-10 10:51:03 EDT
This is not our bug. The CVS project property page should not show up at all,
the JDT views are not properly filtering pages by project nature. (Note if you
go to the navigator and ask for Properties, the page is not there at all).

Duplicate of bug in JDT, bug 7840.

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