kottore / away3d

Automatically exported from code.google.com/p/away3d
0 stars 0 forks source link

[broomstick@r3006] constructor BitmapMaterial() causes null object reference at method isBitmapDataValid() #153

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create BitmapMaterial by calling constructor BitmapMaterial without any 
arguments

What is the expected output? What do you see instead?
Expected: new BitmapMaterial
Instead: Exception fault: TypeError: Error #1009: Cannot access a property or 
method of a null object reference.
    at away3d.materials::DefaultMaterialBase/isBitmapDataValid()[S:\ds3_workspace\away3d\broomstick\Away3D\src\away3d\materials\DefaultMaterialBase.as:316]
    at away3d.materials::BitmapMaterial/set bitmapData()[S:\ds3_workspace\away3d\broomstick\Away3D\src\away3d\materials\BitmapMaterial.as:60]
    at away3d.materials::BitmapMaterial()[S:\ds3_workspace\away3d\broomstick\Away3D\src\away3d\materials\BitmapMaterial.as:27]

What version of the product are you using? On what operating system?
trunk/broomstick/Away3D/src revision 3006
Windows 7 64bit

Please provide any additional information below.
Obviously isBitmapDataValid() is called without considering possible null value

Original issue reported on code.google.com by alex.sei...@gmail.com on 16 Mar 2011 at 10:32

GoogleCodeExporter commented 8 years ago

Original comment by fabric...@gmail.com on 17 Mar 2011 at 10:47