From 2e497f7cae45184184e2416114887095735958f5 Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 08 Feb 2007 01:45:16 +0000 Subject: Each file in this commit has a problem where it is possible to dereference a pointer without that pointer being valid. This commit fixes each instance of that. --- (limited to 'noncore/settings/networksettings2/opietooth2/OTSDPAttribute.cpp') diff --git a/noncore/settings/networksettings2/opietooth2/OTSDPAttribute.cpp b/noncore/settings/networksettings2/opietooth2/OTSDPAttribute.cpp index 9069c09..3fd877f 100644 --- a/noncore/settings/networksettings2/opietooth2/OTSDPAttribute.cpp +++ b/noncore/settings/networksettings2/opietooth2/OTSDPAttribute.cpp @@ -295,6 +295,9 @@ UUIDVector OTSDPAttribute::getAllUUIDs() { subAttributes = getAlternative(); } + if (!subAttributes) + return 0; + int os; for( unsigned int i = 0; i < subAttributes->count(); i++ ) { UUIDVector subUUIDs = (*subAttributes)[i]->getAllUUIDs(); -- cgit v0.9.0.2