Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Small bugfix in ItemSet._onUpdate() which caused a nullpointer in Ite… #2116

Merged
merged 1 commit into from
Sep 24, 2016

Conversation

RomanManz
Copy link
Contributor

…mSet._getType() if a newly delivered item got filtered out inside DataSet.get().

The DataSet allows to pass in a filter function which is called inside DataSet.get().
The item object is set to null if the filter applies.
This causes a Nullpointer exception inside ItemSet._getType() which expects the parameter itemData to be an object.
With the fix ItemSet._getType() is only called if itemData is not null.

…mSet._getType() if a newly delivered item got filtered out inside DataSet.get().
Copy link
Member

@mojoaxel mojoaxel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@mojoaxel mojoaxel merged commit d805427 into almende:develop Sep 24, 2016
@RomanManz RomanManz deleted the develop branch September 24, 2016 20:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants