ceylon/ceylon-compiler — Issue #400: Compiler dies on sample code with -verbose
Author: tombentley
Created: 2012-02-24 21:05:46+00:00
State: open

We get a NPE when trying to log the model loader stats while compiling the hello sample.

```
build/bin/ceylonc -verbose -src samples/helloworld/source/ -out build/hello com.acme.helloworld
```

results in

```
An exception has occurred in the compiler (ceylonc 0.1 'Newton').
java.lang.NullPointerException
at com.redhat.ceylon.compiler.loader.AbstractModelLoader.printStats(AbstractModelLoader.java:1612)
at com.redhat.ceylon.compiler.java.loader.CeylonEnter.completeCeylonTrees(CeylonEnter.java:194)
...
```