NullPointer Exception
Zsolt Koppany <[email protected]> Fri, 25 Jul 2003 17:20:20 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Milos,
I get the following exception:
org.netbeans.lib.cvsclient.connection.PServerConnection.openConnection(PServerConnection.java:169)
at
org.netbeans.lib.cvsclient.connection.PServerConnection.verify(PServerConnection.java:237)
What can be reason? Where can I find the latest stable sources?
The log shows:
user: <anonymous>
host: <cvs.dcplusplus.sourceforge.net>
repository: </cvsroot/dcplusplus>
I use the following code:
PServerConnection c = new PServerConnection();
String encodedPassword =
StandardScrambler.getInstance().scramble(password);
log.debug("user: <" + cvsRoot.getUserName() + "> host: <" +
cvsRoot.getHostName()
+ "> repository: <"+ cvsRoot.getRepository() + ">");
c.setUserName(cvsRoot.getUserName());
c.setEncodedPassword(encodedPassword);
c.setHostName(cvsRoot.getHostName());
c.setRepository(cvsRoot.getRepository());
c.verify();
Zsolt