[jbosstools-commits] JBoss Tools SVN: r39289 - branches/jbosstools-3.3.0.Beta1/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Mon Mar 5 11:32:08 EST 2012
Author: snjeza
Date: 2012-03-05 11:32:06 -0500 (Mon, 05 Mar 2012)
New Revision: 39289
Modified:
branches/jbosstools-3.3.0.Beta1/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesRequirementsPage.java
Log:
JBIDE-11131 NPE when selecting some of requirements in new example wizard
Modified: branches/jbosstools-3.3.0.Beta1/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesRequirementsPage.java
===================================================================
--- branches/jbosstools-3.3.0.Beta1/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesRequirementsPage.java 2012-03-05 16:16:47 UTC (rev 39288)
+++ branches/jbosstools-3.3.0.Beta1/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesRequirementsPage.java 2012-03-05 16:32:06 UTC (rev 39289)
@@ -321,7 +321,9 @@
|| ProjectFix.SEAM_RUNTIME.equals(fix.getType())) {
DownloadRuntime downloadRuntime = getDownloadRuntime(fix);
downloadAndInstall.setEnabled(downloadRuntime != null);
- downloadAndInstall.setToolTipText("Download and install " + downloadRuntime.getName());
+ if (downloadRuntime != null) {
+ downloadAndInstall.setToolTipText("Download and install " + downloadRuntime.getName());
+ }
install.setEnabled(true);
install.setToolTipText("JBoss Runtime Detection");
} else if (ProjectFix.PLUGIN_TYPE.equals(fix.getType())) {
More information about the jbosstools-commits
mailing list