dcmeglio / hubitat-packagemanager

BSD 3-Clause "New" or "Revised" License
151 stars 56 forks source link

HPM Stopped in initial setup #133

Open budjik-tech opened 3 years ago

budjik-tech commented 3 years ago

The install seems to hang or timeout at: "Retrieving list of installed drivers"

Hubitat app log java.lang.NullPointerException: Cannot get property 'location' on null object on line 2269 (downloadFileAsyncCallback)

code: def packagesToMatchAgainst = [] for (uri in results.keySet()) { def result = results[uri] def manifestContents = result.result if (manifestContents == null) log.error "Found a bad manifest ${pkg.location}. Please notify the package developer." else {

thebearmay assisted with this suggestion on line 2269: ${pkg?.location} So changed line to: log.error "Found a bad manifest ${pkg?.location}. Please notify the package developer."

Installation completed and I was able to Update and Install packages.

It would be nice to know which application/driver was causing the error so perhaps logging during the iteration or key during error may assist.

staze commented 3 years ago

Same issue. Anytime running "Match" results in this error. Several forum users reporting same thing.

https://community.hubitat.com/t/beta-hubitat-package-manager/38016

Given the info above, does this mean someone can break HPM by just pushing a bad/malformed manifest to github?