Don't convert handle if None

svn: r21121
This commit is contained in:
Doug Blank 2013-01-14 22:05:29 +00:00
parent 00bd4b81f8
commit 22f646ccce

View File

@ -26,7 +26,7 @@ class Handle:
def __init__(self, classname, handle):
""" Class to hold type and handle of referenced item """
self.classname = classname
if not isinstance(handle, UNITYPE):
if handle and not isinstance(handle, UNITYPE):
handle = handle.decode('utf-8')
self.handle = handle