Created
December 24, 2011 06:00
-
-
Save j5ik2o/1516496 to your computer and use it in GitHub Desktop.
NullPointerExceptionでた
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jp.sf.amateras.scala.sbt_0.0.3.201112241216.jar | |
でプロジェクトを新規作成して、Update Dependency を実行したらNullPointerExceptionが発生した。 | |
libraryDependencies ++= Seq( | |
"junit" % "junit" % "4.8.1" % "test" | |
) | |
などと追記してもDependencyが追加されていない模様。 | |
ソース上では次のようになっている。targetDirがnullなのかしら? | |
File targetDir = new File(getProjectsDirectory(), projectDir.getName()); | |
IOUtil.removeDirectory(targetDir); | |
https://bitbucket.org/takezoe/eclipse-scala-tools/src/ea401053e323/jp.sf.amateras.scala.sbt/src/jp/sf/amateras/scala/sbt/SbtDependencyManager.java | |
eclipse.buildId=M20110909-1335 | |
java.version=1.6.0_29 | |
java.vendor=Apple Inc. | |
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=ja_JP | |
Framework arguments: -keyring /Users/junichi/.eclipse_keyring -showlocation | |
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/junichi/.eclipse_keyring -showlocation | |
java.lang.NullPointerException | |
at jp.sf.amateras.scala.sbt.util.IOUtil.removeDirectory(IOUtil.java:59) | |
at jp.sf.amateras.scala.sbt.SbtDependencyManager.updateDependency(SbtDependencyManager.java:42) | |
at jp.sf.amateras.scala.sbt.action.UpdateDependencyAction.run(UpdateDependencyAction.java:33) | |
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251) | |
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) | |
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) | |
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) | |
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) | |
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128) | |
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457) | |
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480) | |
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465) | |
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270) | |
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974) | |
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613) | |
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) | |
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) | |
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) | |
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) | |
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) | |
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) | |
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) | |
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) | |
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) | |
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) | |
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) | |
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) | |
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) | |
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) | |
at org.eclipse.equinox.launcher.Main.run(Main.java:1410) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment