patching the method getShortUrl
This commit is contained in:
parent
066ee6a344
commit
2df635c6ad
|
@ -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("\\?");
|
||||
|
|
Loading…
Reference in New Issue