kazurayam / materialstore

A domain-specific file system to store "materials" (screenshots, HTML, JSON, XML) collected during End-to-End testings using Selenium WebDriver etc. Features to make "diff" and compiling HTML reports are also included. This is written in pure Java8
Apache License 2.0
0 stars 0 forks source link

Jobber#write(byte[] data, ...) should check that data argument should not be null #438

Closed kazurayam closed 1 year ago

kazurayam commented 1 year ago

In the VisualInspectionTutorial project, v0.3.0-SNAPSTION, $ gradel test failed at lot

java.lang.NullPointerException
    at com.kazurayam.materialstore.core.Jobber.write(Jobber.java:153)
    at com.kazurayam.materialstore.core.StoreImpl.write(StoreImpl.java:947)
    at com.kazurayam.materialstore.core.StoreImpl.write(StoreImpl.java:929)
    at my.sample.T02WriteImageWithMetadataTest.test02_write_image_with_metadata(T02WriteImageWithMetadataTest.java:38)

It uses materialstore-0.16.6

Jobber class should show appropriate message for any NPE, but it doesn't.

スクリーンショット 2023-09-17 9 13 13
kazurayam commented 1 year ago

done at the 0.16.7-SNAPSHOT