Skip to content

Commit

Permalink
Added fix for exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianKirmaier committed Dec 5, 2024
1 parent cf2f562 commit 9cdd306
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,9 @@ static Image findBestImage(java.util.List icons, int width, int height) {

//shrink the image and convert the format to INT_ARGB_PRE
ByteBuffer buf = (ByteBuffer) image.getPixelBuffer();
if(buf == null) {
return; // JPro removed the buffer to reduce memory usage.
}
byte bytes[] = new byte[buf.limit()];

int iheight = image.getHeight();
Expand Down

0 comments on commit 9cdd306

Please sign in to comment.