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 code there seems strange to me. It tries to read a file project.properties, as it seems from anywhere on the classpath. If that file isn't found it silently "eats" the signalling IOException. But if it is found it tries to read the version property from it and write it to the buffer as _client_version. And if the version property doesn't exist this causes the NPE. I would say this read-properties block should be removed completely, it makes no sense as it is completely optional. In my case it found a project.properties in some dependency which didn't contain the expected property, causing the NPE.
A workaround is to place a dummy "project.properties" with a version property in the classpath before any other potential candidate (which may be difficult under certain circumstances).
The text was updated successfully, but these errors were encountered:
When starting a Micronaut 4 application I get an NPE from within
BufferUtils.writeLlengthEncode()
:The causing line is
The code there seems strange to me. It tries to read a file
project.properties
, as it seems from anywhere on the classpath. If that file isn't found it silently "eats" the signalling IOException. But if it is found it tries to read the version property from it and write it to the buffer as_client_version
. And if the version property doesn't exist this causes the NPE. I would say this read-properties block should be removed completely, it makes no sense as it is completely optional. In my case it found aproject.properties
in some dependency which didn't contain the expected property, causing the NPE.A workaround is to place a dummy "project.properties" with a version property in the classpath before any other potential candidate (which may be difficult under certain circumstances).
The text was updated successfully, but these errors were encountered: