You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Jianyun Cheng (Jira)" <ji...@apache.org> on 2022/03/01 07:00:00 UTC
[jira] [Created] (IOTDB-2637) NPE at go client
Jianyun Cheng created IOTDB-2637:
------------------------------------
Summary: NPE at go client
Key: IOTDB-2637
URL: https://issues.apache.org/jira/browse/IOTDB-2637
Project: Apache IoTDB
Issue Type: Bug
Components: Client/Others
Reporter: Jianyun Cheng
Version:
go client: 0.12.0
server: 0.13.0
GO client will throw NPE when query result is not success.
{code:java}
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x2aadd9]goroutine 1 [running]:
github.com/apache/iotdb-client-go/client.(*Session).genDataSet(0xc00007aea0, 0x30c486, 0x37, 0xc00014e0e0, 0xc00014e0e0)
D:/Project/iotdb/client-go/client/session.go:443 +0x79
github.com/apache/iotdb-client-go/client.(*Session).ExecuteStatement(0xc00007aea0, 0x30c486, 0x37, 0x0, 0x0, 0x0)
D:/Project/iotdb/client-go/client/session.go:270 +0x139
main.executeStatement()
D:/Project/iotdb/client-go/example/session_example.go:439 +0x4d
main.main()
D:/Project/iotdb/client-go/example/session_example.go:101 +0x3d5 {code}
*Reproduce:*
# create storage group with keywords:
{code:java}
create storage group root.iot.`property`.testsg {code}
# access the storage group without escaping:
{code:java}
set ttl to root.iot.property.testsg 12345 {code}
*Expect:*
client get error message and error code
*Actual:*
go client get NPE
--
This message was sent by Atlassian Jira
(v8.20.1#820001)