Project

General

Profile

Actions

Bug #5816

closed

Null pointer exception on agentTypes class

Added by Vincent MEMBRÉ almost 10 years ago. Updated over 9 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

We saw a null pointer execption appearing on AgentType class.

[2014-11-25 13:27:38] ERROR net.liftweb.actor.ActorLogger - Actor threw an exception
java.lang.ExceptionInInitializerError: null
Caused by: java.lang.NullPointerException: null
Exception in thread "pool-2-thread-2" java.lang.ExceptionInInitializerError
    at com.normation.inventory.domain.AgentType$.allValues(AgentTypes.scala:64)
    at com.normation.inventory.domain.AgentType$.fromValue(AgentTypes.scala:72)

Someting went wrong at AgntType initialization, val 'TagValue' is not correctly initialized

val tagValue = s"cfengine-${this}".toLowerCase

using a lazy val fixes that problem

Actions

Also available in: Atom PDF