ivargrimstad / snoopee

SnoopEE - The Lean Microservice Framework for Java EE
http://snoopee.agilejava.eu/
MIT License
17 stars 6 forks source link

null check needed on SnoopEERegistrationClient # 192 #11

Open mulderbaba opened 7 years ago

mulderbaba commented 7 years ago

if snoopee: is missing in snoopee.yml (and if it exists as snoop:) a NPE gets thrown.

Caused by: java.lang.NullPointerException
    at eu.agilejava.snoopee.scan.SnoopEERegistrationClient.lambda$null$11(SnoopEERegistrationClient.java:192)
ivargrimstad commented 6 years ago

That is actually a misconfiguration, and should at least give a warning at startup. The user clearly want som in-app config, but has made an error. It should be pretty straightforward to fix.