I think you have an outdated version of the code. That doesn't match up with the line numbers in the newest version. Can you make sure you have the newest code from github?
My bad, I was looking at the wrong branch. Could you provide the logs when this occurs? Seeing what appears before/after it in the logs will help figure out what's going on.
Something is preventing raw.githubusercontent.com from resolving to an IP. It’s working for me so I suspect something with the DNS server your network is using. I’d start looking there. Can you resolve that domain from your pc for example or do you get the same error?
I am having the same message after deleting and reinstalling Package Manager,
ava.lang.NullPointerException: Cannot get property 'repositories' on null object on line 3546 (method prefSettings)
First, that's an expired repository. It will give you an OLD version (1.8.3) Dominic has left the Community and I volunteered to continue HPM maintenance using a new repository. However, you can get to the goal line from 1.8.3 IF you're willing to do all the steps. Begin by doing as @thebearmay suggests and a Repair of HPM. That will upgrade you to the latest (1.8.7) and solve most issues. You will probably see the cosmetic issue of two HPM entries, which is solved by following this:
If you look at the end of the topic @thebearmay suggested, you'll find the same advice offered to someone else: