Keesun Baik 2015-02-04
Fixed NPE when view code
@c64fc4932f59535f96553da57c41861aef2d11a6
app/playRepository/GitRepository.java
--- app/playRepository/GitRepository.java
+++ app/playRepository/GitRepository.java
@@ -235,7 +235,7 @@
             }
             TreeWalk treeWalk = TreeWalk.forPath(repository, path, revTree);
             // path is not a folder
-            if (!treeWalk.isSubtree()) return false;
+            if (treeWalk == null || !treeWalk.isSubtree()) return false;
             treeWalk.enterSubtree();
             treeWalk.next();
             // path contains a file
Add a comment
List