[jboss-cvs] jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards ...

Max Rydahl Andersen mandersen at jboss.com
Sat Dec 9 20:59:03 EST 2006


  User: mandersen
  Date: 06/12/09 20:59:03

  Modified:    hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards 
                        ConsoleConfigurationWizardPage.java
  Log:
  HBX-834 NullPointerException in EclipseConsoleConfigurationPreferences
  
  Revision  Changes    Path
  1.26      +10 -0     jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConsoleConfigurationWizardPage.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -b -r1.25 -r1.26
  --- ConsoleConfigurationWizardPage.java	16 Nov 2006 17:30:06 -0000	1.25
  +++ ConsoleConfigurationWizardPage.java	10 Dec 2006 01:59:03 -0000	1.26
  @@ -689,6 +689,16 @@
   			//return;
   		}
   		
  +		if((useProjectClassPath() && StringHelper.isEmpty( getProjectName() )) && classPathViewer.getTable().getItemCount()==0) {
  +			updateStatus( "Need to specify a project or setup a classpath" );
  +			return;
  +		}
  +		
  +		if((!useProjectClassPath() && classPathViewer.getTable().getItemCount()==0)) {
  +			updateStatus( "Need to specify a classpath when not using a project classpath" );
  +			return;
  +		}
  +		
   		updateStatus(null);
   	}
   
  
  
  



More information about the jboss-cvs-commits mailing list