例外時に出力するメッセージを変更

This commit is contained in:
nero 2023-12-22 10:29:57 +09:00
parent 2402936a19
commit c31a590ce3

View File

@ -19,7 +19,7 @@ public class DocumentAdapter extends RecyclerView.Adapter<DocumentAdapter.Docume
public DocumentAdapter(List<DocumentMeta> documentMetas) {
// nullの場合に例外を発生させる
if (documentMetas == null) {
throw new IllegalArgumentException("DocumentMetas list cannot be null");
throw new IllegalArgumentException("DocumentMetas list cannot be null or empty");
}
this.documentMetas = documentMetas;
}