
Fixed NPE when view code
@c64fc4932f59535f96553da57c41861aef2d11a6
--- app/playRepository/GitRepository.java
+++ app/playRepository/GitRepository.java
... | ... | @@ -235,7 +235,7 @@ |
235 | 235 |
} |
236 | 236 |
TreeWalk treeWalk = TreeWalk.forPath(repository, path, revTree); |
237 | 237 |
// path is not a folder |
238 |
- if (!treeWalk.isSubtree()) return false; |
|
238 |
+ if (treeWalk == null || !treeWalk.isSubtree()) return false; |
|
239 | 239 |
treeWalk.enterSubtree(); |
240 | 240 |
treeWalk.next(); |
241 | 241 |
// path contains a file |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?