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

Bug 186666

Summary: [EFS] NPE creating EFS connection with invalid URI
Product: [Eclipse Project] Platform Reporter: Brock Janiczak <brockj>
Component: CVSAssignee: platform-cvs-inbox <platform-cvs-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P5 Keywords: helpwanted
Version: 3.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Brock Janiczak CLA 2007-05-11 22:13:13 EDT
Attempting to create a connection to the following URI will result in a NullPointerException:
cvs:pserver:anonymous@dev.eclipse.org:!cvsroot!eclipse/org.eclipse.team.cvs.core
Note that the URI is missing the //, causing it to have a null authority.  Checking for null in getRepository isn't enough as it will later fail when trying to parse the old format.  I have also noticed that the CVS filestore will throw an IllegalArgumentException in some cases instead of returning the NullFileStore as specified in FielSystem#getStore


Exception in thread "main" java.lang.NullPointerException
	at org.eclipse.team.internal.ccvs.core.filesystem.CVSURI.getRepository(CVSURI.java:119)
	at org.eclipse.team.internal.ccvs.core.filesystem.CVSURI.fromUri(CVSURI.java:45)
	at org.eclipse.team.internal.ccvs.core.filesystem.CVSFileSystem.getStore(CVSFileSystem.java:33)
	at org.eclipse.team.internal.ccvs.core.filesystem.Test.main(Test.java:24)
Comment 1 Eclipse Webmaster CLA 2019-09-06 15:32:28 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 2 Eclipse Genie CLA 2022-02-22 12:25:11 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.