Skip to content

Commit 3d1c88f

Browse files
committed
Fix NPE in Rule.toString() on debugging
1 parent 542a6c5 commit 3d1c88f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/com/inet/lib/less/CssFormatter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ void freeOutput() {
250250
* @return the content of the current output
251251
*/
252252
String releaseOutput() {
253+
if( output == null ) { // occur in Rule.toString()
254+
return "";
255+
}
253256
String str = output.toString();
254257
freeOutput();
255258
return str;

0 commit comments

Comments
 (0)