From 23a4715f654dea82f4b3332fd98264b586cbcf00 Mon Sep 17 00:00:00 2001 From: Stefan Feuerhahn Date: Tue, 26 Jun 2018 16:54:21 +0200 Subject: [PATCH] fixed bug that would cause casting error if ctlVal in server implementation is of type AnalogueValue --- src/main/java/org/openmuc/openiec61850/ServerAssociation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openmuc/openiec61850/ServerAssociation.java b/src/main/java/org/openmuc/openiec61850/ServerAssociation.java index bbbe934..e8da14c 100644 --- a/src/main/java/org/openmuc/openiec61850/ServerAssociation.java +++ b/src/main/java/org/openmuc/openiec61850/ServerAssociation.java @@ -1128,7 +1128,7 @@ final class ServerAssociation { if (fcModelNodeCopy.fc == Fc.CO) { // TODO timeactivate operate - fcModelNodeCopy = (BasicDataAttribute) fcModelNodeCopy.getChild("ctlVal"); + fcModelNodeCopy = (FcModelNode) fcModelNodeCopy.getChild("ctlVal"); // TODO write origin and ctlNum if they exist } else {