patching the method getShortUrl

This commit is contained in:
Francesco Mangiacrapa 2020-12-02 12:46:33 +01:00
parent 066ee6a344
commit 2df635c6ad
1 changed files with 3 additions and 3 deletions

View File

@ -118,10 +118,10 @@ public class GeoportalCommon {
if (longUrl == null)
return longUrl;
UrlShortener shortener = new UrlShortener();
try {
UrlShortener shortener = new UrlShortener();
if (shortener != null && shortener.isAvailable()) {
String toShort = longUrl;
String[] splitted = toShort.split("\\?");