Shot: NullPointerException when there are no screenshot tests
I’m running the plugin like the documentation says, and am getting this exception. I’m following it through and it looks like the plugin is trying to get screen shots for compose and there are none so there is a NPE.
Caused by: java.lang.NullPointerException
at scala.collection.mutable.ArrayOps$ofRef$.newBuilder$extension(ArrayOps.scala:202)
at scala.collection.mutable.ArrayOps$ofRef.newBuilder(ArrayOps.scala:198)
at scala.collection.TraversableLike.filterImpl(TraversableLike.scala:289)
at scala.collection.TraversableLike.filterImpl$(TraversableLike.scala:284)
at scala.collection.mutable.ArrayOps$ofRef.filterImpl(ArrayOps.scala:198)
at scala.collection.TraversableLike.filter(TraversableLike.scala:382)
at scala.collection.TraversableLike.filter$(TraversableLike.scala:382)
at scala.collection.mutable.ArrayOps$ofRef.filter(ArrayOps.scala:198)
at com.karumi.shot.Shot.readComposeScreenshotsMetadata(Shot.scala:292)
at com.karumi.shot.Shot.recordComposeScreenshots(Shot.scala:188)
at com.karumi.shot.Shot.recordScreenshots(Shot.scala:58)
at com.karumi.shot.tasks.ExecuteScreenshotTests.executeScreenshotTests(Tasks.scala:73)
This is on version 5.5.0
Please let me know if I can provide anymore information to you to get this issue resovled.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 25 (12 by maintainers)
Thanks for the info @tobiasKaminsky now we have a repo reproducing the issue and we can check what’s going on 😃