Author: lektran
Date: Fri May 9 01:33:03 2008
New Revision: 654718
URL:
http://svn.apache.org/viewvc?rev=654718&view=revLog:
Fix to prevent an IndexOutOfBoundsException
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java?rev=654718&r1=654717&r2=654718&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java Fri May 9 01:33:03 2008
@@ -145,7 +145,7 @@
public static String getCurrentUserIdentifier() {
List<Object> curValList = getUserIdentifierStack();
- Object curVal = curValList.get(0);
+ Object curVal = curValList.size() > 0 ? curValList.get(0) : null;
if (curVal == null) {
return null;
} else {