We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e8e5b4 commit a4f0881Copy full SHA for a4f0881
1 file changed
src/org/netbeans/modules/php/wordpress/wpapis/WordPressVersionCheckApi.java
@@ -88,6 +88,10 @@ public void parse() throws IOException {
88
InputStream inputStream = openStream();
89
try {
90
JSONObject jsonObject = (JSONObject) JSONValue.parse(new InputStreamReader(inputStream, Charset.UTF8));
91
+ if (jsonObject == null) {
92
+ LOGGER.log(Level.INFO, "Can't get json for version check information."); // NOI18N
93
+ return;
94
+ }
95
JSONArray offers = (JSONArray) jsonObject.get("offers"); // NOI18N
96
97
// get version and locale
0 commit comments