Skip to content

Commit

Permalink
[sre] Avoid NPE in probe service when the agent is not yet alive.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Mar 8, 2020
1 parent 51f9605 commit 22d105b
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -84,6 +84,9 @@ abstract class AbstractProbeService extends AbstractSreService implements ProbeS

override probe(valueName : SarlName, valueType : Class<T>, probeName : String = null) : Probe<T> with T {
assert valueType !== null
if (valueName === null) {
return null
}
val uri = valueName.toURI
if (valueName === null) {
return null
Expand Down

0 comments on commit 22d105b

Please sign in to comment.