Chromium Code Reviews| Index: editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/configs/DartServerLaunchConfigurationDelegate.java |
| =================================================================== |
| --- editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/configs/DartServerLaunchConfigurationDelegate.java (revision 6281) |
| +++ editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/configs/DartServerLaunchConfigurationDelegate.java (working copy) |
| @@ -170,7 +170,9 @@ |
| IResource resource = launchConfig.getApplicationResource(); |
| if (resource == null) { |
| - return launchConfig.getProject().getLocation().toFile(); |
| + if (launchConfig.getProject() != null) { |
| + return launchConfig.getProject().getLocation().toFile(); |
| + } |
|
devoncarew
2012/04/06 18:47:27
up to an else clause here?
|
| } else { |
| if (resource.isLinked()) { |
| // If the resource is linked, set the cwd to the parent directory of the resolved resource. |
| @@ -180,6 +182,7 @@ |
| return resource.getProject().getLocation().toFile(); |
| } |
| } |
| + return null; |
|
devoncarew
2012/04/06 18:47:27
Can you move this return
|
| } |
| private String translateToFilePath(String scriptPath) { |