Commit b8b28a96 by sikang

bug fix http

parent 159c02bf
...@@ -10,7 +10,7 @@ public class ActivityInfoBean implements Serializable{ ...@@ -10,7 +10,7 @@ public class ActivityInfoBean implements Serializable{
private String detailUrl; private String detailUrl;
public String getUrl() { public String getUrl() {
return url.replace("http://", "https://"); return url == null ? "" : url.replace("http://", "https://");
} }
public void setUrl(String url) { public void setUrl(String url) {
......
...@@ -109,7 +109,7 @@ public class EmploymentServerBean implements Serializable { ...@@ -109,7 +109,7 @@ public class EmploymentServerBean implements Serializable {
} }
public String getWorkCardUrl() { public String getWorkCardUrl() {
return workCardUrl.replace("http://", "https://"); return workCardUrl == null ? "" : url.replace("http://", "https://");
} }
public void setWorkCardUrl(String workCardUrl) { public void setWorkCardUrl(String workCardUrl) {
......
...@@ -31,7 +31,7 @@ public class PhotoListBean implements Serializable { ...@@ -31,7 +31,7 @@ public class PhotoListBean implements Serializable {
} }
public String getUrl() { public String getUrl() {
return url.replace("http://", "https://"); return url == null ? "" : url.replace("http://", "https://");
} }
public void setUrl(String url) { public void setUrl(String url) {
......
...@@ -36,7 +36,7 @@ public class RecordFilesResponse implements Serializable { ...@@ -36,7 +36,7 @@ public class RecordFilesResponse implements Serializable {
} }
public String getUrl() { public String getUrl() {
return url.replace("http://", "https://"); return url == null ? "" : url.replace("http://", "https://");
} }
public void setUrl(String url) { public void setUrl(String url) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment