fixed a recurring NPE when loading swf with dependencies

This commit is contained in:
david.elahee@gmail.com
2014-02-26 12:06:18 +01:00
parent c56e6cafeb
commit a5a26e7753

View File

@@ -3234,10 +3234,11 @@ value lime_bitmap_data_from_bytes(value inRGBBytes, value inAlphaBytes)
return alloc_null();
Surface *surface = Surface::LoadFromBytes(bytes.data,bytes.length);
surface->SetAllowTrans(true);
if (surface)
{
surface->SetAllowTrans(true);
if (!val_is_null(inAlphaBytes))
{
ByteData alphabytes;