[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

[jcvs] Null Pinter Exception


I am trying to use the client of jCVS to fit our needs, I have gotten a lot
further in the last few weeks.  Basically I can connect, and now I am trying
to checkout, I get to the point where it looks like jCVS is trying to
checkout a file, but then I get a null pointer exception here:

	if ( this.retrieveFile( currItem, file ) )
									{
									currItem.setFile( file );
									isok = this.processResponseItem
										( request, response, currItem );
									}

In processResponseItem	( request, response, currItem ); this call is made:

	public CVSUserInterface
	getUserInterface()
		{
		return this.ui;
		}

the UI is of course null, becuase I am not using a User Interface.  I know
CVSClient creates a fake user interface:

CVSUserInterface ui = request.getUserInterface();
		if ( ui == null )
			{
			ui = this.new NullCVSUI();
			}


but the request still wants a user interface to do this:

	if ( ok )
							{
							request.getUserInterface().uiDisplayProgressMsg
								( cmdName + " local file '"
									+ localFile.getPath() + "'." );

							// UNDONE try/catch for better messaging!!!
							ok = this.updateLocalFile
									( item, entry, localFile );
							}


I am lost at this point any help would be appreciated.

Thanks,

Rob