GitHub user kristoffSC opened a pull request:
https://github.com/apache/ignite/pull/2811 IGNITE-6234 Initialize schemaIds as empty set if schemas field is null
Initialize schemaIds as an empty set if schemas field is null and BinaryMetada is deserialized.
This behavior is concise with BinaryMetadata constructor.
This should prevent NPE for some situations when BinarryMetadata object is created from deserialization and we call hasSchema(int i) on it. -
https://issues.apache.org/jira/browse/IGNITE-6234You can merge this pull request into a Git repository by running:
$ git pull
https://github.com/kristoffSC/ignite IGNITE-6234
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/2811.patchTo close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2811
----
commit b515c499031691bd76800a7db26478f41b2218e8
Author: Krzysztof Chmielewski <
[hidden email]>
Date: 2017-10-05T21:59:45Z
IGNITE-6234 Initialize schemaIds to empty set if schemas field is null during the deserialization
----
---