Skip to content

Commit

Permalink
had broken hierarchy tests
Browse files Browse the repository at this point in the history
take into consideration that class list can be empty.
  • Loading branch information
Eric Winger authored and Eric Winger committed Sep 5, 2018
1 parent dc1f38c commit 316dc90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sources/JadeiteProjectsBrowserPresenter.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,11 @@ updateHierarchy
| service selection |
classHierarchyPresenter model: TreeModel new.
Cursor wait showWhile:
[service := classListPresenter selectionOrNil ifNil: [RowanClassService new name: classListPresenter list first name].
[service := classListPresenter selectionOrNil
ifNil:
[classListPresenter list isEmpty
ifTrue: [RowanClassService new name: 'Object']
ifFalse: [RowanClassService new name: classListPresenter list first name]].
service command: #classHierarchy.
self issueCommand: (Array with: service).
service name = 'Object'
Expand Down

0 comments on commit 316dc90

Please sign in to comment.