Skip to content

Doctor declaration Malaria processing fails if missing elements #14285

Description

@raulbob

Bug Description

It seems that there are further issues with Malaria regarding optional elements.

NullPointerException will be thrown if Malaria doctor declaration xml does not contain the following elements:

  • profOccupation
  • prophylaxisTreatment
  • purposeOfTravel
  • diseaseTransmission

Reproduction Steps

  1. Create a doctor declaration xml with MALA section empty
  2. Submit the doctor declaration
  3. Mapping fails due to NPE

Expected Behavior

The xml should be converted to a message in the message directory.

Affected Area(s)

Web app

SORMAS Version

1.104.0

Android version/Browser

adapter

User Role(s)

Admin

Server URL

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

bugAn error or misbehavior of an existing feature (ticket type)

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions