Permalink
Browse files

fix crash when does not find pods.

  • Loading branch information...
1 parent 4da5f97 commit 438c8577635891f17bd9890d88f2a0ebfee3787a @Watson1978 committed Nov 24, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 PodCreator/PodList.rb
@@ -70,8 +70,10 @@ def prepareList(sender)
def selectPods(sender)
obj = arrayController.selectedObjects.first
- delegate.addPod(obj)
- self.window.orderOut(self)
+ if obj
+ delegate.addPod(obj)
+ self.window.orderOut(self)
+ end
end
#----------------------------------------

0 comments on commit 438c857

Please sign in to comment.