Skip to content

Commit

Permalink
Add more defensive code if a marker can't be retrieved
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Dec 3, 2014
1 parent 48db50f commit 600e5bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mixins/decoration-management.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class DecorationManagement extends Mixin
decorateMarker: (marker, decorationParams) ->
return unless marker?
marker = @getMarker(marker.id)
return unless marker?

if !decorationParams.scope? and decorationParams.class?
cls = decorationParams.class.split(' ').join('.')
Expand Down

0 comments on commit 600e5bb

Please sign in to comment.