Skip to content

Commit

Permalink
NullPointerException: Cannot invoke "String.equals(Object)" because the
Browse files Browse the repository at this point in the history
[#182026669]

Refactor if Condition in ApplicationStatusRepository.java.

This story contains bug resolved for
1. Nullpointer exception caused due to fail to add the cover page to te
pdf.
2. Extra row added in application_status table if an application has
more than one routing destination.

Co-authored-by: Chibuisi Enyia <cenyia@codeforamerica.org>
Co-authored-by: Eric M Johnson <eric.m.johnson@state.mn.us>
  • Loading branch information
3 people committed May 17, 2022
1 parent a224cf5 commit cbbd882
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public List<String> getAndSetFileNames(Application application, Document documen
}
for (int i = 0; i < uploadedDocs.size(); i++) {
String fileName = uploadedDocs.get(i).getSysFileName();
if (fileName == null || (fileName!=null && !fileName.contains(routingDest.getDhsProviderId()))) {
if (fileName == null || !fileName.contains(routingDest.getDhsProviderId())) {
String extension = Utils.getFileType(uploadedDocs.get(i).getFilename());
fileName =
filenameGenerator.generateUploadedDocumentName(application, i, extension, routingDest);
Expand Down

0 comments on commit cbbd882

Please sign in to comment.