Commits

Anonymous committed 508b548

QUARTZ-520 - possible stack overflow in toString()

git-svn-id: http://svn.opensymphony.com/svn/quartz/trunk@64669f7d36a-ea1c-0410-88ea-9fd03e4c9665

Comments (0)

Files changed (1)

src/java/org/quartz/SchedulerException.java

 
     public String toString() {
         Throwable cause = getUnderlyingException(); 
-        if (cause == null) {
+        if (cause == null || cause == this) {
             return super.toString();
         } else {
             return super.toString() + " [See nested exception: " + cause + "]";