diff --git a/src/InternetSearch/Client/QuakeClient.java b/src/InternetSearch/Client/QuakeClient.java index 54e14734..86fb4d4e 100644 --- a/src/InternetSearch/Client/QuakeClient.java +++ b/src/InternetSearch/Client/QuakeClient.java @@ -13,7 +13,6 @@ import InternetSearch.SearchEngine; import InternetSearch.SearchResultEntry; -import InternetSearch.SearchType; import config.ConfigManager; import config.ConfigName; @@ -42,8 +41,18 @@ public List parseResp(String respbody) { SearchResultEntry entry = new SearchResultEntry(); - entry.getIPSet().add(entryitem.getString("ip")); - entry.setRootDomain(entryitem.getString("domain")); + try { + entry.getIPSet().add(entryitem.getString("ip")); + } catch (Exception e1) { + e1.printStackTrace(); + } + + try { + entry.setRootDomain(entryitem.getString("domain")); + } catch (Exception e1) { + e1.printStackTrace(); + } + int port = entryitem.getInt("port"); entry.setPort(port);