public PhmmerRequest build() {
if (sequence == null)
throw new IllegalStateException("sequence not set");
- if (database == null)
- throw new IllegalStateException("database not set");
boolean usingEValues = incE != null || incdomE != null || E != null || domE != null;
boolean usingBitScores = incT != null || incdomT != null || T != null || domT != null;
if (usingEValues && usingBitScores)
requireNonNullElse(noBias, defaultNoBias),
requireNonNullElse(compressedOut, defaultCompressedOut),
requireNonNullElse(alignView, defaultAlignView),
- database,
+ requireNonNullElse(database, defaultDatabase),
requireNonNullElse(evalue, defaultEvalue),
sequence,
requireNonNullElse(nhits, defaultNhits));