minor fix

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/gcube-ckan-datacatalog@133842 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-11-03 09:59:51 +00:00
parent 5d4475378d
commit 4e6bee32c5
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate {
// decode parameters (they could have been encoded)
Map<String, String> paramsMap = new HashMap<String, String>(2);
String queryParameters = Window.Location.getQueryString();
if(queryParameters != null){
if(queryParameters != null && !queryParameters.isEmpty()){
String decoded = URL.decodeQueryString(queryParameters); // equals should be encoded too (%3D)
String[] params = decoded.substring(decoded.indexOf("?") + 1).split("&");
for (int i = 0; i < params.length; i++) {