I'm not familiar with ChillConfig but I'm guessing java is involved or you'd do something instead like this to avoid returning an explicit null and NPE's

Try( typesafeConfig.getString(key) ).toOption