diff -r b2fb188c9bff -r cb9da964a178 LPCconnector/LPCAppObject.py --- a/LPCconnector/LPCAppObject.py Thu Mar 21 02:06:16 2013 +0100 +++ b/LPCconnector/LPCAppObject.py Thu Mar 21 17:29:53 2013 +0100 @@ -124,7 +124,7 @@ def GetLogMessage(self, level, msgid): strbuf = self.HandleSerialTransaction(GET_LOGMSGTransaction(level, msgid)) - if len(strbuf) > 12: + if strbuf is not None and len(strbuf) > 12: cbuf = ctypes.cast( ctypes.c_char_p(strbuf[:12]), ctypes.POINTER(ctypes.c_uint32))