From bpoussin@users.nuiton.org Sat Jun  2 05:07:04 2012
From: bpoussin@users.nuiton.org
To: wikitty-commits@list.nuiton.org
Subject:
 [Wikitty-commits] r1483 -	trunk/wikitty-api/src/main/java/org/nuiton/wikitty
Date: Sat, 02 Jun 2012 05:07:04 +0200
Message-ID: <20120602030704.3D2DE5E543@nuiton.codelutin.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============4438551762720240402=="

--===============4438551762720240402==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Author: bpoussin
Date: 2012-06-02 05:07:04 +0200 (Sat, 02 Jun 2012)
New Revision: 1483

Url: http://nuiton.org/repositories/revision/wikitty/1483

Log:
if after conversion from object to wikitty id, id is blank then replace it by=
 null


Modified:
   trunk/wikitty-api/src/main/java/org/nuiton/wikitty/WikittyUtil.java

Modified: trunk/wikitty-api/src/main/java/org/nuiton/wikitty/WikittyUtil.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/wikitty-api/src/main/java/org/nuiton/wikitty/WikittyUtil.java	2012-=
06-01 14:27:32 UTC (rev 1482)
+++ trunk/wikitty-api/src/main/java/org/nuiton/wikitty/WikittyUtil.java	2012-=
06-02 03:07:04 UTC (rev 1483)
@@ -656,6 +656,12 @@
                 result =3D value.toString();
             }
         }
+
+        if (StringUtils.isBlank(result)) {
+            // id never can be empty or blank. If result is blank then resul=
t must be null
+            result =3D null;
+        }
+
         return result;
     }
=20


--===============4438551762720240402==--


