Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337495 - exception when validating server without URL
Summary: exception when validating server without URL
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 0.7   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-17 17:28 EST by Steffen Pingel CLA
Modified: 2011-02-17 17:38 EST (History)
0 users

See Also:


Attachments
mylyn/context/zip (16.73 KB, application/octet-stream)
2011-02-17 17:38 EST, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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