thebuzzmedia/imgscalr — Issue #60: Cannot enable debug mode
Author: bgooren
Created: 2011-12-02 16:17:53+00:00
State: open

When I enable debug mode by setting the necessary system property, Scalr bails out due to a NullPointerException.

This is caused by line 148 in Scalr.java:

static {
log(0, null, "Debug output ENABLED");
}

Since the second param (message) is null, the call to System.out.printf(message, params) throws an exception.
It looks like that line should read

log(0, "Debug output ENABLED");

anyway...