Skip to content

Commit

Permalink
Fixes #55 - Stack overflow in "Run as Clojure REPL"
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentpetit committed Apr 14, 2010
1 parent 4cf5573 commit 56cb5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccw.core/src/ccw/launching/LaunchUtils.java
Expand Up @@ -122,7 +122,7 @@ private static String fileArg(IProject project, IFile file) {
}

private static IPackageFragmentRoot findPackageFragmentRoot(IJavaProject javaProject, IPath filePath) throws JavaModelException {
if (filePath.isEmpty()) {
if (filePath.isEmpty() || filePath.isRoot()) {
return null;
} else {
IResource possibleFragmentResource = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(filePath);
Expand Down

0 comments on commit 56cb5fd

Please sign in to comment.