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:
parent
5d4475378d
commit
4e6bee32c5
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue