details:   https://code.openbravo.com/erp/devel/pi/rev/3bea3a10622a
changeset: 14021:3bea3a10622a
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Tue Oct 18 17:46:19 2011 +0200
summary:   fixed bug 18776, fixed bug 18489: getIdentifier doesn't work without 
OBContext

diffstat:

 src/org/openbravo/base/structure/IdentifierProvider.java |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r c2133a701c72 -r 3bea3a10622a 
src/org/openbravo/base/structure/IdentifierProvider.java
--- a/src/org/openbravo/base/structure/IdentifierProvider.java  Tue Oct 18 
17:31:40 2011 +0200
+++ b/src/org/openbravo/base/structure/IdentifierProvider.java  Tue Oct 18 
17:46:19 2011 +0200
@@ -72,7 +72,9 @@
    * @return the identifier
    */
   public String getIdentifier(Object o) {
-    return getIdentifier(o, true, OBContext.getOBContext().getLanguage());
+    final Language lang = OBContext.getOBContext() != null ? 
OBContext.getOBContext().getLanguage()
+        : null;
+    return getIdentifier(o, true, lang);
   }
 
   // identifyDeep determines if refered to objects are used

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to