bioimage-io / JDLL

The Java library to run Deep Learning models
https://github.com/bioimage-io/JDLL/wiki
Apache License 2.0
27 stars 6 forks source link

Avoid NullPointerException in DownloadTracker #42

Closed stefanhahmann closed 4 months ago

stefanhahmann commented 4 months ago

The intention of this of Pull Request is to avoid a NullPointerException printed out to the console during the process of downloading files needed for engines that have not yet been download.

Current state: grafik

The NullPointerException actually is not really a problem. The download works as intended even after the Exception occurs. However, the Exception can be confusing to users and made me think, I should stop the process, because there was an exception while trying to download.

The changes of this Pull Request lead to this situation instead: grafik

I am not totally sure, if this reflects the initial intention of the download tracker.