Actions
Bug #5816
closedNull pointer exception on agentTypes class
Status:
Released
Priority:
1 (highest)
Assignee:
Category:
Web - Nodes & inventories
Target version:
Pull Request:
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