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 188262 - NullPointerException at org.netbeans.modules.scala.console.ScalaExecution.getScala
Summary: NullPointerException at org.netbeans.modules.scala.console.ScalaExecution.get...
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Scala (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: _ dcaoyuan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-01 03:38 UTC by thadguidry
Modified: 2010-07-02 02:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 171107


Attachments
stacktrace (1.69 KB, text/plain)
2010-07-01 03:38 UTC, thadguidry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thadguidry 2010-07-01 03:38:02 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-5402-on-100630)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows 7

User Comments:
thadguidry: Set my SCALA_HOME env var in Windows 7 to point to Scala-2.8.0.RC7\bin
Restarted NB and error occured.
Scala Console window state was remembered and was opened automatically.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.scala.console.ScalaExecution.getScala(ScalaExecution.java:280)
   at org.netbeans.modules.scala.console.ScalaConsoleTopComponent.createTerminal(ScalaConsoleTopComponent.java:299)
   at org.netbeans.modules.scala.console.ScalaConsoleTopComponent.componentOpened(ScalaConsoleTopComponent.java:163)
   at org.openide.windows.WindowManager.componentOpenNotify(WindowManager.java:303)
   at org.netbeans.core.windows.WindowManagerImpl.notifyTopComponentOpened(WindowManagerImpl.java:975)
   at org.netbeans.core.windows.Central.addModeOpenedTopComponent(Central.java:774)
Comment 1 thadguidry 2010-07-01 03:38:06 UTC
Created attachment 100532 [details]
stacktrace
Comment 2 thadguidry 2010-07-02 02:50:18 UTC
After removing the Scala_Home env var, restarting Windows 7 and resetting the SCALA_HOME env var to "C:\User\Thad\Downloads\scala-2.8.0.RC7" , the interactive console (REPL) now appears to work correctly inside NB nightly with Scala 2.8.0 RC7 available at command.  Weird. The only thing I can think of is that the user environment variable needs a true restart of the OS to take effect in Win 7 ?  -- THAD