You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2013/12/30 11:21:25 UTC
svn commit: r1554177 -
/syncope/trunk/console/src/main/java/org/apache/syncope/console/commons/HttpResourceStream.java
Author: ilgrosso
Date: Mon Dec 30 10:21:24 2013
New Revision: 1554177
URL: http://svn.apache.org/r1554177
Log:
Handling missing HTTP location
Modified:
syncope/trunk/console/src/main/java/org/apache/syncope/console/commons/HttpResourceStream.java
Modified: syncope/trunk/console/src/main/java/org/apache/syncope/console/commons/HttpResourceStream.java
URL: http://svn.apache.org/viewvc/syncope/trunk/console/src/main/java/org/apache/syncope/console/commons/HttpResourceStream.java?rev=1554177&r1=1554176&r2=1554177&view=diff
==============================================================================
--- syncope/trunk/console/src/main/java/org/apache/syncope/console/commons/HttpResourceStream.java (original)
+++ syncope/trunk/console/src/main/java/org/apache/syncope/console/commons/HttpResourceStream.java Mon Dec 30 10:21:24 2013
@@ -51,7 +51,7 @@ public class HttpResourceStream extends
this.inputStream = (InputStream) entity;
this.contentType = response.getHeaderString(HttpHeaders.CONTENT_TYPE);
- this.location = response.getLocation().toASCIIString();
+ this.location = response.getLocation() == null ? null : response.getLocation().toASCIIString();
String contentDisposition = response.getHeaderString(HttpHeaders.CONTENT_DISPOSITION);
if (StringUtils.isNotBlank(contentDisposition)) {
String[] splitted = contentDisposition.split("=");