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>
Thu, 26 Jan 2012 19:58:09 +0000 (20:58 +0100)
commit27e0d9c08af8008fb6fbc658869fe10a1e9b3e77
tree2ea07e6120c4de91b6f3a8801e60fd307a69e839
parent8caa41dbce278c71fb594629742352245d2f79ae
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