You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code in HttpConnector from the draft branch
try (InputStream in = HttpConnector.class.getResourceAsStream("/org/shredzone/acme4j/version.properties")) {
Properties prop = new Properties();
prop.load(in);
agent.append('/').append(prop.getProperty("version"));
} catch (IOException ex) {
// Ignore, just don't use a version
LoggerFactory.getLogger(HttpConnector.class).warn("Could not read library version", ex);
}
throws a NullPointerException in the load() method when running against a freshly checked out version.properties.
Since reading the version seems not to be critical, I'd rather change the catch(IOException) to a more generic catch(Exception).
The text was updated successfully, but these errors were encountered:
The following code in HttpConnector from the draft branch
throws a NullPointerException in the load() method when running against a freshly checked out version.properties.
Since reading the version seems not to be critical, I'd rather change the catch(IOException) to a more generic catch(Exception).
The text was updated successfully, but these errors were encountered: