empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1452379 - /empire-db/trunk/empire-db/src/main/java/org/apache/empire/exceptions/InternalException.java
Date Mon, 04 Mar 2013 16:40:36 GMT
Author: doebele
Date: Mon Mar  4 16:40:35 2013
New Revision: 1452379

URL: http://svn.apache.org/r1452379
Log:
Additional exception stack check

Modified:
    empire-db/trunk/empire-db/src/main/java/org/apache/empire/exceptions/InternalException.java

Modified: empire-db/trunk/empire-db/src/main/java/org/apache/empire/exceptions/InternalException.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db/src/main/java/org/apache/empire/exceptions/InternalException.java?rev=1452379&r1=1452378&r2=1452379&view=diff
==============================================================================
--- empire-db/trunk/empire-db/src/main/java/org/apache/empire/exceptions/InternalException.java
(original)
+++ empire-db/trunk/empire-db/src/main/java/org/apache/empire/exceptions/InternalException.java
Mon Mar  4 16:40:35 2013
@@ -44,7 +44,7 @@ public class InternalException extends E
         String msg   = exptn.getMessage();
         // Prepare stack trace
         StackTraceElement[] stack = exptn.getStackTrace();
-        String pos = (stack!=null) ? stack[0].toString() : "{unknown}";
+        String pos = (stack!=null && stack.length>0) ? stack[0].toString() : "{unknown}";
         // Create Error
         return new String[] { type, msg, pos };
     }



Mime
View raw message