Skip to content

Commit

Permalink
Load animated cursor NPE
Browse files Browse the repository at this point in the history
Potential NPE when loading animated cursors (.ani)
  • Loading branch information
Nebloksiam authored and stephengold committed Oct 3, 2018
1 parent 02ec12e commit e8cb312
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ private void addFrame(byte[] imgData, int rate, int jiffy, int width, int height
imgDelay = BufferUtils.createIntBuffer(numImages);
}
imgDelay.put(cid.imgDelay);
} else if (imgData != null) {
} else if (imgDelay != null) {
imgDelay.put(cid.imgDelay);
}
xHotSpot = cid.xHotSpot;
Expand Down

0 comments on commit e8cb312

Please sign in to comment.