]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixed databoard set binding getAll indexing bug 82/1182/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 2 Nov 2017 12:56:16 +0000 (14:56 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 2 Nov 2017 12:56:16 +0000 (14:56 +0200)
commit123ffb4e766047e37270bfffd46363ac85cdc4f9
tree64f4e87b611aa5a2439ae1bd875e48154c85cbb9
parent41736ad32e06490bbf5d32a3b2a0db8b2679ff99
Fixed databoard set binding getAll indexing bug

All *SetBindings were missing a simple i++ increment which caused
serialization of a TreeSet<..> structure to fail with NPE when the set
contained more than 1 elements.

refs #7592

Change-Id: Ic0f10324dfbfbafe527c624d7d092928a2f10bb7
bundles/org.simantics.databoard/src/org/simantics/databoard/binding/impl/DefaultSetBinding.java
bundles/org.simantics.databoard/src/org/simantics/databoard/binding/impl/HashSetBinding.java
bundles/org.simantics.databoard/src/org/simantics/databoard/binding/impl/TreeSetBinding.java