Load animated cursor NPE
Potential NPE when loading animated cursors (.ani)
This commit is contained in:
parent
f71aad128a
commit
0f66b814b3
@ -699,7 +699,7 @@ public class CursorLoader implements AssetLoader {
|
||||
imgDelay = BufferUtils.createIntBuffer(numImages);
|
||||
}
|
||||
imgDelay.put(cid.imgDelay);
|
||||
} else if (imgData != null) {
|
||||
} else if (imgDelay != null) {
|
||||
imgDelay.put(cid.imgDelay);
|
||||
}
|
||||
xHotSpot = cid.xHotSpot;
|
||||
|
Loading…
x
Reference in New Issue
Block a user