Prevent a crash when no locale is specified in the URL.
authorMurray Cumming <murrayc@murrayc.com>
Thu, 26 Jan 2012 19:58:09 +0000 (20:58 +0100)
committerMurray Cumming <murrayc@murrayc.com>
Fri, 27 Jan 2012 11:45:57 +0000 (12:45 +0100)
commit44ef5cb0608e56ca2f40239ff383756f263ff8b3
treef1efa45727d3b7ee2093f2b9247bd4c4f5d4b914
parent55a27b2b0d1b5bd2ae4786a8d843be27b4bedb20
Prevent a crash when no locale is specified in the URL.

* src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
Avoid returning a null string, obtained from
Window.Location.getParameter(). This caused a crash when it was
later passed to libglom's API.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
getDetailsLayoutAndData(): Use StringUtils.defaultString() to
guard against future null strings.
ChangeLog
src/main/java/org/glom/web/client/Utils.java
src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java