Bug 186666 - [EFS] NPE creating EFS connection with invalid URI
Summary: [EFS] NPE creating EFS connection with invalid URI
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-05-11 22:13 EDT by Brock Janiczak CLA
Modified: 2022-02-22 12:25 EST (History)
0 users

See Also:


Attachments

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