Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315736 - Server view: NPE occured if no items in 'Add and Remove...' wizard changed
Summary: Server view: NPE occured if no items in 'Add and Remove...' wizard changed
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Swordfish (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Swordfish Core Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-04 04:43 EDT by Alexey Markevich CLA
Modified: 2014-01-09 16:40 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 Alexey Markevich CLA 2010-06-04 04:43:01 EDT
1. Create new Swordfish Server instance
2. Open 'Add abd Remove...' wizard via context menu (at least one faceted project must be present in workspace)
3. Finish this wizard without any changes.

Result:

eclipse.buildId=I20100520-1744
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU
Framework arguments:  -product org.eclipse.epp.package.soa.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.soa.product


Error
Fri Jun 04 11:39:19 EEST 2010
Could not publish to the server.

java.lang.NullPointerException
at org.eclipse.swordfish.tooling.server.core.P2Helper.getDeployableModels(P2Helper.java:186)
at org.eclipse.swordfish.tooling.server.core.operations.MultiOperation.execute(MultiOperation.java:128)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.performTasks(ServerBehaviourDelegate.java:1229)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:920)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775)
at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2888)
at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Juergen Kindler CLA 2010-06-04 07:05:14 EDT
Fixed NPE.
Comment 2 Juergen Kindler CLA 2010-06-04 07:07:27 EDT
Please retest.
Comment 3 Alexey Markevich CLA 2010-06-04 07:43:57 EDT
Fix verified - defect closed.
Comment 4 Juergen Kindler CLA 2010-06-04 10:11:07 EDT
Corrected version