Check to make sure the bitmap exists before converting to image.

This commit is contained in:
blitzmann
2018-10-12 23:58:51 -04:00
parent 677a9b33c5
commit 15bbf69fcf

View File

@@ -73,7 +73,11 @@ class BitmapLoader(object):
@classmethod
def getImage(cls, name, location):
return cls.getBitmap(name, location).ConvertToImage()
bmp = cls.getBitmap(name, location)
if bmp is not None:
return bmp.ConvertToImage()
else:
return None
@classmethod
def loadBitmap(cls, name, location):