This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 170819

Summary: NullPointerException at org.netbeans.modules.ruby.railsprojects.ui.wizards.DatabaseConfigPanelVisual.read
Product: ruby Reporter: Petr Chytil <pchytil>
Component: RailsAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: blocker CC: musilt2
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=156671
Issue Type: DEFECT Exception Reporter: 156671
Attachments: stacktrace

Description Petr Chytil 2009-08-24 15:44:55 UTC
Build: NetBeans IDE 6.7.1 (Build 200907230233)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02-83, Java(TM) SE Runtime Environment, 1.6.0_13-b03-211
OS: Mac OS X, 10.5.8, x86_64

User Comments:
pchytil: Steps to reproduce:
 - invoke new ruby on rails project wizard
 - jruby is selected as the ruby platform on the first screen
 - activate the ruby platform combobox and select jruby (it was already selected by default)
 - <invalid platform> should be now selected in the combobox instead of the jruby
 - click on the "next" button
 - this NPE should jump out



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.ruby.railsprojects.ui.wizards.DatabaseConfigPanelVisual.read(DatabaseConfigPanelVisual.java:89)
        at org.netbeans.modules.ruby.railsprojects.ui.wizards.DatabaseConfigPanel.readSettings(DatabaseConfigPanel.java:75)
        at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:886)
        at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:837)
        at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:731)
        at org.netbeans.modules.project.ui.NewProjectWizard.updateState(NewProjectWizard.java:67)
Comment 1 Petr Chytil 2009-08-24 15:45:00 UTC
Created attachment 86572 [details]
stacktrace
Comment 2 Tomas Danek 2009-08-25 11:24:07 UTC
reproducible, probably something wrong with combobox on 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02-83, not
reproducible on 1.5.0_19; Java HotSpot(TM) Client VM 1.5.0_19-137; Apple Inc.
Comment 3 Erno Mononen 2009-08-25 16:03:18 UTC
I'll take a look at this.
Comment 4 Erno Mononen 2010-04-29 14:15:32 UTC
I'll need to find out whether this is already fixed in the latest Mac JDK 6.