Skip to content

Commit

Permalink
elements can be nil if GC happens
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Aug 24, 2017
1 parent a019ac9 commit 4ab614b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ modelFor: entity
"We are using a WeakSet for keeping models because using a dictionary (sorted by
name) has problems when cleaning. This should be efficient enough, but we'll see."
model := self models
detect: [ :each | each entity name = entity name ]
detect: [ :each | each notNil and: [ each entity name = entity name ] ]
ifNone: [ nil ].
^ model ifNil: [
self compactIfNeeded.
Expand Down
6 changes: 3 additions & 3 deletions Iceberg-UI.package/monticello.meta/categories.st
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SystemOrganization addCategory: #'Iceberg-UI'!
SystemOrganization addCategory: 'Iceberg-UI-Model'!
SystemOrganization addCategory: 'Iceberg-UI-Utils'!
SystemOrganization addCategory: 'Iceberg-UI-View'!
SystemOrganization addCategory: #'Iceberg-UI-Model'!
SystemOrganization addCategory: #'Iceberg-UI-Utils'!
SystemOrganization addCategory: #'Iceberg-UI-View'!

0 comments on commit 4ab614b

Please sign in to comment.