From 71de86e65ac6f8d58fa56c3a5ea6f364e671606b Mon Sep 17 00:00:00 2001 From: Jannis Voelker Date: Tue, 26 Jun 2018 14:02:22 +0200 Subject: Fix copy&paste error in the readArray test xmlElementArrayNode needs to be checked for validity before access. Change-Id: I4ee7f45edb9b4a09c3b731c3735a7843de4f3908 Reviewed-by: Frank Meerkoetter Reviewed-by: Rainer Keller --- tests/auto/qopcuaclient/tst_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/qopcuaclient/tst_client.cpp b/tests/auto/qopcuaclient/tst_client.cpp index df3dc46..c539833 100644 --- a/tests/auto/qopcuaclient/tst_client.cpp +++ b/tests/auto/qopcuaclient/tst_client.cpp @@ -1491,7 +1491,7 @@ void Tst_QOpcUaClient::readArray() QSKIP("XmlElement support is not yet implemented in the freeopcua backend"); QScopedPointer xmlElementArrayNode(opcuaClient->node("ns=2;s=Demo.Static.Arrays.XmlElement")); - QVERIFY(nodeIdArrayNode != 0); + QVERIFY(xmlElementArrayNode != 0); READ_MANDATORY_VARIABLE_NODE(xmlElementArrayNode) QVariant xmlElementArray = xmlElementArrayNode->attribute(QOpcUa::NodeAttribute::Value); QVERIFY(xmlElementArray.type() == QVariant::List); -- cgit v1.2.3