Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/Main.java
Original file line number Diff line number Diff line change
@@ -351,7 +351,7 @@ private Status handleOutOfMemory(OutOfMemoryError oome) {

String oomeMessage = oome.getMessage();

if (oomeMessage.contains("PermGen")) { // report permgen memory error
if (oomeMessage != null && oomeMessage.contains("PermGen")) { // report permgen memory error
config.getError().println("Error: Your application exhausted PermGen area of the heap.");
config.getError().println("Specify -J-XX:MaxPermSize=###M to increase it (### = PermGen size in MB).");

0 comments on commit cbcd2eb

Please sign in to comment.