From 371b658afcb37d8590e40c856454b24071c26c66 Mon Sep 17 00:00:00 2001 From: Stefan Karlsson Date: Sun, 6 Mar 2016 12:48:20 +0100 Subject: [PATCH] LP-251 Fix incorrect null check --- ground/uavobjgenerator/generators/gcs/uavobjectgeneratorgcs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ground/uavobjgenerator/generators/gcs/uavobjectgeneratorgcs.cpp b/ground/uavobjgenerator/generators/gcs/uavobjectgeneratorgcs.cpp index b8002c0e9..75111391d 100644 --- a/ground/uavobjgenerator/generators/gcs/uavobjectgeneratorgcs.cpp +++ b/ground/uavobjgenerator/generators/gcs/uavobjectgeneratorgcs.cpp @@ -605,7 +605,7 @@ bool UAVObjectGeneratorGCS::generate(UAVObjectParser *parser, QString templatepa */ bool UAVObjectGeneratorGCS::process_object(ObjectInfo *object) { - if (info == NULL) { + if (object == NULL) { return false; }