perfsonar-dev - perfsonar: r4520 - branches/WebAdmin/perfSONARWebAdmin/auxiliary/xmlDB
Subject: perfsonar development work
List archive
- From:
- To:
- Subject: perfsonar: r4520 - branches/WebAdmin/perfSONARWebAdmin/auxiliary/xmlDB
- Date: Mon, 22 Sep 2008 07:57:13 -0400
Author: pgerakios
Date: 2008-09-22 07:57:12 -0400 (Mon, 22 Sep 2008)
New Revision: 4520
Modified:
branches/WebAdmin/perfSONARWebAdmin/auxiliary/xmlDB/existAuthenticatorImpl.java
Log:
Modified:
branches/WebAdmin/perfSONARWebAdmin/auxiliary/xmlDB/existAuthenticatorImpl.java
===================================================================
---
branches/WebAdmin/perfSONARWebAdmin/auxiliary/xmlDB/existAuthenticatorImpl.java
2008-09-22 11:02:57 UTC (rev 4519)
+++
branches/WebAdmin/perfSONARWebAdmin/auxiliary/xmlDB/existAuthenticatorImpl.java
2008-09-22 11:57:12 UTC (rev 4520)
@@ -42,12 +42,15 @@
private String getMethodName(int i)
{
StackTraceElement[] ste = (new Throwable()).getStackTrace();
- return ste[ste.length-i].getClassName() + " : " +
ste[ste.length-i].getMethodName() + " : " ;
+ if( ste != null && ste.length - i > 0 && ste.length > 0 && i > 0 )
+ return ste[ste.length-i].getClassName() + " : " +
ste[ste.length-i].getMethodName() + " : " ;
+ else
+ return "<Unkown class name , method name > : ";
}
private void printDatabaseInfo()
{
- System.err.println( getMethodName(-2) + " URI : " + DBLocation + "
admin user name : " + "admin" + " admin password : " + password);
+ System.err.println( getMethodName(2) + " URI : " + DBLocation + "
admin user name : " + "admin" + " admin password : " + password);
}
//
-----------------------------------------------------------------------
// public methods
- perfsonar: r4520 - branches/WebAdmin/perfSONARWebAdmin/auxiliary/xmlDB, svnlog, 09/22/2008
Archive powered by MHonArc 2.6.16.