Details
Description
When importing a spreadsheet in GradebookNG, if a row contains a user ID which is not a member of the site AND the row contains a null value for the "Student Name" cell, an NPE will be generated.
This is caused by the reporting algorithm which is responsible for telling the user which entries in the file belong to users who are not members of the site. This algorithm access the row's "Student Name" value and tries to call .trim() on it, which generates the NPE if the cell in the file has no value.
The solution is simple: when setting this value, call StringUtils.trimToEmpty().
Gliffy Diagrams
Zeplin
Attachments
Issue Links
- depends on
-
SAK-33849 GBNG: Improve error handling/reporting and information messaging around the Import/Export process
-
- Verified
-
-
SAK-34054 GBNG > Import > fix front-end validation for comma decimal locales
-
- RESOLVED
-
- is duplicated by
-
SAK-40614 NullPointerException with blank Name in Gradebook import
-
- RESOLVED
-