You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Igor Sapego (Jira)" <ji...@apache.org> on 2024/09/18 17:39:00 UTC
[jira] [Commented] (IGNITE-23157) NPE in ClientBinaryTupleUtils.appendValue on unknown type
[ https://issues.apache.org/jira/browse/IGNITE-23157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17882767#comment-17882767 ]
Igor Sapego commented on IGNITE-23157:
--------------------------------------
Looks good to me.
> NPE in ClientBinaryTupleUtils.appendValue on unknown type
> ---------------------------------------------------------
>
> Key: IGNITE-23157
> URL: https://issues.apache.org/jira/browse/IGNITE-23157
> Project: Ignite
> Issue Type: Bug
> Components: thin client
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Priority: Major
> Labels: ignite-3
> Fix For: 3.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> If the user tries to upsert a tuple with an unsupported object inside, and assertions are disabled, we get an NPE instead of a sensible exception.
> {code}
> var table = defaultTable().recordView();
> var tuple = Tuple.create()
> .set("id", DEFAULT_ID)
> .set("name", new ArrayList<String>());
> table.upsert(null, tuple);
> {code}
> {code}
> java.lang.NullPointerException: null
> at org.apache.ignite.internal.client.proto.ClientBinaryTupleUtils.appendValue(ClientBinaryTupleUtils.java:444) ~[ignite-client-common-9.0.127-SNAPSHOT.jar:?]
> at org.apache.ignite.internal.client.table.ClientTupleSerializer.appendValue(ClientTupleSerializer.java:412) ~[main/:?]
> at org.apache.ignite.internal.client.table.ClientTupleSerializer.writeTupleRaw(ClientTupleSerializer.java:147) ~[main/:?]
> at org.apache.ignite.internal.client.table.ClientTupleSerializer.writeTuple(ClientTupleSerializer.java:121) ~[main/:?]
> at org.apache.ignite.internal.client.table.ClientTupleSerializer.writeTuple(ClientTupleSerializer.java:77) ~[main/:?]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)