刘韬 3 years ago
parent
commit
00bd41ced2
1 changed files with 5 additions and 1 deletions
  1. 5 1
      DataFusion/src/com/zskk/control/ViewController.java

+ 5 - 1
DataFusion/src/com/zskk/control/ViewController.java

@@ -95,8 +95,12 @@ public class ViewController extends Controller {
 			Db.use("local").update("study", studyidfind);
 			Db.use("local").update("study", studyidfind);
 			 dicomfind = Db.use("connected_dicom").find("select top 2000 * from dicominfo where studyuid=?",studyidfind.getStr("studyuid"));
 			 dicomfind = Db.use("connected_dicom").find("select top 2000 * from dicominfo where studyuid=?",studyidfind.getStr("studyuid"));
 			for (Record record : dicomfind) {
 			for (Record record : dicomfind) {
+				String urlString = record.getStr("URL");
+				if (urlString.isBlank()) {
+					continue;
+				}
 				Request request = new Request.Builder()
 				Request request = new Request.Builder()
-				        .url(record.getStr("URL"))
+				        .url(urlString)
 				        .build();
 				        .build();
 				aString =aString+record.getStr("URL")+"/n";
 				aString =aString+record.getStr("URL")+"/n";
 				try (Response response = OKHTTP_CLIENT.newCall(request).execute()) {
 				try (Response response = OKHTTP_CLIENT.newCall(request).execute()) {