From 15692e5c4a6d7ebd1297f5b5a2d6386d1fb57955 Mon Sep 17 00:00:00 2001 From: Steffen Engl Date: Tue, 3 Nov 2020 07:36:08 +0100 Subject: [PATCH] NullReferenceException Fixed In very very few cases (I had 5 projects out of ~300 total that each had 1 block that was causing this error) --- LibNoDaveConnectionLibrary/PLCs/S7_xxx/MC7/CallConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibNoDaveConnectionLibrary/PLCs/S7_xxx/MC7/CallConverter.cs b/LibNoDaveConnectionLibrary/PLCs/S7_xxx/MC7/CallConverter.cs index 9123449b..20e50859 100644 --- a/LibNoDaveConnectionLibrary/PLCs/S7_xxx/MC7/CallConverter.cs +++ b/LibNoDaveConnectionLibrary/PLCs/S7_xxx/MC7/CallConverter.cs @@ -601,7 +601,7 @@ public static void ConvertUCToCall(S7FunctionBlock myFct, S7ProgrammFolder myFld if (pRow != null) newPar.Value = ((S7DataRow)pRow).StructuredName.Substring(((S7DataRow)pRow).StructuredName.IndexOf('.') + 1); } - else + else if (par != null) { switch (((S7DataRow)s7DataRow).DataType) {