diff --git a/src/InternetSearch/Client/ZoomEyeClient.java b/src/InternetSearch/Client/ZoomEyeClient.java index 29dec2ce..3ac653d8 100644 --- a/src/InternetSearch/Client/ZoomEyeClient.java +++ b/src/InternetSearch/Client/ZoomEyeClient.java @@ -55,9 +55,9 @@ public List parseResp(String respbody) { String serviceName = entryitem.getJSONObject("portinfo").getString("service"); entry.setProtocol(serviceName); - JSONArray titleArray = entryitem.getJSONObject("portinfo").getJSONArray("title"); - if (titleArray != null) { - entry.setTitle(titleArray.getString(0)); + String title = entryitem.getJSONObject("portinfo").getString("title"); + if (title != null) { + entry.setTitle(title); } entry.setSource(getEngineName());