[jbosside-issues] [JBoss JIRA] Created: (JBIDE-424) Blank page in NewSessionBeanWizard when nothing is selected

Max Andersen (JIRA) jira-events at jboss.com
Wed Nov 29 05:43:55 EST 2006


Blank page in NewSessionBeanWizard when nothing is selected
-----------------------------------------------------------

                 Key: JBIDE-424
                 URL: http://jira.jboss.com/jira/browse/JBIDE-424
             Project: JBoss IDE
          Issue Type: Patch
          Components: EJB3 plugin
    Affects Versions: 2.0.0.Beta2
            Reporter: Max Andersen
         Assigned To: Marshall Culpepper


Found this during the demo at JBW.

When nothing is selected one gets a blank wizard page. Here is the patch i made against JBW_BERLIN tag.

### Eclipse Workspace Patch 1.0
#P org.jboss.ide.eclipse.ejb3.wizards.ui
Index: src/main/org/jboss/ide/eclipse/ejb3/ui/wizards/pages/NewSessionBeanWizardPage.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/ejb3/plugins/org.jboss.ide.eclipse.ejb3.wizards.ui/src/main/org/jboss/ide/eclipse/ejb3/ui/wizards/pages/NewSessionBeanWizardPage.java,v
retrieving revision 1.2
diff -u -r1.2 NewSessionBeanWizardPage.java
--- src/main/org/jboss/ide/eclipse/ejb3/ui/wizards/pages/NewSessionBeanWizardPage.java	6 Nov 2006 17:18:38 -0000	1.2
+++ src/main/org/jboss/ide/eclipse/ejb3/ui/wizards/pages/NewSessionBeanWizardPage.java	29 Nov 2006 10:40:42 -0000
@@ -173,7 +173,7 @@
       setControl(composite);
 
       IJavaElement element = getInitialJavaElement(selection);
-      if (element.getElementType() == IJavaElement.PACKAGE_FRAGMENT)
+      if (element!=null && element.getElementType() == IJavaElement.PACKAGE_FRAGMENT)
 //            || element.getElementType() == IJavaElement.PACKAGE_FRAGMENT_ROOT)
       {
          beanPackageName.setText(element.getElementName());

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list