You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuweni.apache.org by GitBox <gi...@apache.org> on 2020/03/02 02:28:16 UTC

[GitHub] [incubator-tuweni] rain-on opened a new issue #50: FileBackedFingerprintRepository throws NPE if fingerPrintFile has no parent Dir

rain-on opened a new issue #50: FileBackedFingerprintRepository throws NPE if fingerPrintFile has no parent Dir
URL: https://github.com/apache/incubator-tuweni/issues/50
 
 
   When attempt to create a FileBackedFingerprintRepository, if the supplied path is a simple filename (eg Path.of("file.tmp"), it effectively has no parent directory, and thus the call to createDirectories() (on line 39) is invoked with a 'null' parameter, resulting in an NPE.
   
   Current workaround is to ensure it the FileBackedFingerprintRepository is instantiated with an absolutePath 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tuweni.apache.org
For additional commands, e-mail: dev-help@tuweni.apache.org


[GitHub] [incubator-tuweni] atoulme closed issue #50: FileBackedFingerprintRepository throws NPE if fingerPrintFile has no parent Dir

Posted by GitBox <gi...@apache.org>.
atoulme closed issue #50: FileBackedFingerprintRepository throws NPE if fingerPrintFile has no parent Dir
URL: https://github.com/apache/incubator-tuweni/issues/50
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tuweni.apache.org
For additional commands, e-mail: dev-help@tuweni.apache.org


[GitHub] [incubator-tuweni] atoulme commented on issue #50: FileBackedFingerprintRepository throws NPE if fingerPrintFile has no parent Dir

Posted by GitBox <gi...@apache.org>.
atoulme commented on issue #50: FileBackedFingerprintRepository throws NPE if fingerPrintFile has no parent Dir
URL: https://github.com/apache/incubator-tuweni/issues/50#issuecomment-593243752
 
 
   Sure thing. Note this means the path is relative to the current Java working directory, so an absolute path is still preferred imo. I have fixed the issue with the commit above, please review.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tuweni.apache.org
For additional commands, e-mail: dev-help@tuweni.apache.org