|
From: <caw...@us...> - 2007-05-09 18:43:52
|
Revision: 2455
http://svn.sourceforge.net/rubyeclipse/?rev=2455&view=rev
Author: cawilliams
Date: 2007-05-09 11:43:50 -0700 (Wed, 09 May 2007)
Log Message:
-----------
try to avoid null pointer when user has no default interprter installed
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/RubyProjectWizardFirstPage.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/RubyProjectWizardFirstPage.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/RubyProjectWizardFirstPage.java 2007-05-09 16:49:33 UTC (rev 2454)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/RubyProjectWizardFirstPage.java 2007-05-09 18:43:50 UTC (rev 2455)
@@ -431,7 +431,9 @@
}
private String getDefaultJVMName() {
- return RubyRuntime.getDefaultVMInstall().getName();
+ IVMInstall vm = RubyRuntime.getDefaultVMInstall();
+ if (vm == null) return "";
+ return vm.getName();
}
private String getDefaultJVMLabel() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|