{"action":"created","issue":{"url":"https://api.github.com/repos/typesafehub/config/issues/355","labels_url":"https://api.github.com/repos/typesafehub/config/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/typesafehub/config/issues/355/comments","events_url":"https://api.github.com/repos/typesafehub/config/issues/355/events","html_url":"https://github.com/typesafehub/config/issues/355","id":105783064,"number":355,"title":"NullPointer","user":{"login":"analytically","id":254434,"avatar_url":"https://avatars.githubusercontent.com/u/254434?v=3","gravatar_id":"","url":"https://api.github.com/users/analytically","html_url":"https://github.com/analytically","followers_url":"https://api.github.com/users/analytically/followers","following_url":"https://api.github.com/users/analytically/following{/other_user}","gists_url":"https://api.github.com/users/analytically/gists{/gist_id}","starred_url":"https://api.github.com/users/analytically/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analytically/subscriptions","organizations_url":"https://api.github.com/users/analytically/orgs","repos_url":"https://api.github.com/users/analytically/repos","events_url":"https://api.github.com/users/analytically/events{/privacy}","received_events_url":"https://api.github.com/users/analytically/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-10T10:54:35Z","updated_at":"2015-09-10T14:34:52Z","closed_at":null,"body":"```\r\njava.lang.NullPointerException\r\n\tat com.typesafe.config.impl.AbstractConfigValue.withFallback(AbstractConfigValue.java:274)\r\n\tat com.typesafe.config.impl.AbstractConfigObject.withFallback(AbstractConfigObject.java:139)\r\n\tat com.typesafe.config.impl.SimpleConfig.withFallback(SimpleConfig.java:515)\r\n\tat com.typesafe.config.impl.SimpleConfig.withFallback(SimpleConfig.java:37)\r\n\tat com.typesafe.config.ConfigFactory.load(ConfigFactory.java:212)\r\n\tat com.typesafe.config.ConfigFactory.load(ConfigFactory.java:181)\r\n\tat com.typesafe.config.ConfigFactory.load(ConfigFactory.java:167)\r\n```\r\n\r\nMy code:\r\n```\r\nclass ServerRouteTest extends FlatSpec with Matchers with ScalatestRouteTest with MockFactory {\r\n  val cfg = ConfigFactory.parseString(\r\n    \"\"\"\r\n      akka.daemonic = on\r\n    \"\"\")\r\n\r\n  override protected def createActorSystem(): ActorSystem = ActorSystem(\"test\", ConfigFactory.load(cfg))\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/typesafehub/config/issues/comments/139265441","html_url":"https://github.com/typesafehub/config/issues/355#issuecomment-139265441","issue_url":"https://api.github.com/repos/typesafehub/config/issues/355","id":139265441,"user":{"login":"havocp","id":218689,"avatar_url":"https://avatars.githubusercontent.com/u/218689?v=3","gravatar_id":"","url":"https://api.github.com/users/havocp","html_url":"https://github.com/havocp","followers_url":"https://api.github.com/users/havocp/followers","following_url":"https://api.github.com/users/havocp/following{/other_user}","gists_url":"https://api.github.com/users/havocp/gists{/gist_id}","starred_url":"https://api.github.com/users/havocp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havocp/subscriptions","organizations_url":"https://api.github.com/users/havocp/orgs","repos_url":"https://api.github.com/users/havocp/repos","events_url":"https://api.github.com/users/havocp/events{/privacy}","received_events_url":"https://api.github.com/users/havocp/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T14:34:52Z","updated_at":"2015-09-10T14:34:52Z","body":"Not obvious what could be wrong here. If you look at https://github.com/typesafehub/config/blob/master/config/src/main/java/com/typesafe/config/impl/AbstractConfigValue.java#L274 the only thing that would be null to cause this is `mergeable`, and `parseString` should never return null. So, checking assumptions...\r\n\r\n * you could assert `cfg != null` before you do the `ConfigFactory.load`\r\n * you could get a longer stack trace to be sure the `ConfigFactory.load` in the trace is the one in your code snippet, rather than one inside Akka somewhere\r\n * let me know the version you're using, let's be sure it matches the latest source I linked to above\r\n * a test case without akka involved would be useful since we could put it in the config test suite\r\n\r\nThanks for the report!\r\n \r\n\r\n"}}