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

Bug 337495

Summary: exception when validating server without URL
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: 0.7   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Steffen Pingel CLA 2011-02-17 17:28:44 EST
Steps:
1. Create Hudson server
2. Validate without entering URL

!ENTRY org.eclipse.mylyn.commons.team 4 0 2011-02-17 14:27:37.270
!MESSAGE Unexpected error during repository validation.
!STACK 0
java.lang.reflect.InvocationTargetException
	at org.eclipse.mylyn.commons.ui.team.RepositoryLocationPart$2.run(RepositoryLocationPart.java:587)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.lang.NullPointerException
	at org.eclipse.mylyn.commons.net.WebUtil.getHost(WebUtil.java:432)
	at org.eclipse.mylyn.commons.net.WebUtil.createHostConfiguration(WebUtil.java:285)
	at org.eclipse.mylyn.commons.http.CommonHttpClient.getHostConfiguration(CommonHttpClient.java:79)
	at org.eclipse.mylyn.commons.http.HttpOperation.execute(HttpOperation.java:63)
	at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient$8.execute(RestfulHudsonClient.java:413)
	at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient$8.execute(RestfulHudsonClient.java:1)
	at org.eclipse.mylyn.internal.hudson.core.client.HudsonOperation.run(HudsonOperation.java:32)
	at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient.validate(RestfulHudsonClient.java:426)
	at org.eclipse.mylyn.internal.hudson.core.HudsonServerBehaviour.validate(HudsonServerBehaviour.java:846)
	at org.eclipse.mylyn.builds.internal.core.BuildServer.validate(BuildServer.java:450)
	at org.eclipse.mylyn.builds.ui.spi.BuildServerPart$Validator.run(BuildServerPart.java:113)
	at org.eclipse.mylyn.commons.ui.team.RepositoryLocationPart$2.run(RepositoryLocationPart.java:582)
	... 1 more
Comment 1 Steffen Pingel CLA 2011-02-17 17:38:12 EST
Added null check for location url.
Comment 2 Steffen Pingel CLA 2011-02-17 17:38:13 EST
Created attachment 189237 [details]
mylyn/context/zip