Skip to content

Commit

Permalink
avoid null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
arthuredelstein committed Sep 15, 2012
1 parent 7c6a7a4 commit 0fe152a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clooj/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
[tree path]
(let [root-node (.. tree getModel getRoot)]
(loop [node root-node]
(when-not (.isLeaf node)
(when (and node (not (.isLeaf node)))
(when-let [children (node-children node)]
(let [closer-node (first
(filter #(file-ancestor?
Expand Down

0 comments on commit 0fe152a

Please sign in to comment.