gwen-interpreter / gwen

Core Gwen interpreter
https://gweninterpreter.org
Apache License 2.0
36 stars 8 forks source link

NullPointerException if the meta directory does not exist #61

Closed Sorixelle closed 2 years ago

Sorixelle commented 2 years ago

If the user has deleted the gwen/meta/ directory in a project created by gwen init, Gwen instantly crashes on startup with the following exception:

ERROR - NullPointerException
java.lang.NullPointerException
        at scala.collection.ArrayOps$.filter$extension(ArrayOps.scala:191)
        at gwen.core.FileIO$.recursiveScan(Predefs.scala:167)
        at gwen.core.eval.GwenLauncher.$anonfun$1(GwenLauncher.scala:108)
        at scala.collection.immutable.List.flatMap(List.scala:293)
        at gwen.core.eval.GwenLauncher.run(GwenLauncher.scala:108)
        at gwen.GwenInterpreter.run(GwenInterpreter.scala:88)
        at gwen.GwenInterpreter.main(GwenInterpreter.scala:64)
        at gwen.web.GwenWebInterpreter.main(GwenWebInterpreter.scala)
bjuric commented 2 years ago

Fixed in gwen-web v3.0.7 Close when ready. Thanks @Sorixelle.

Sorixelle commented 2 years ago

Looks to be resolved.