Bug 653 - Null Pointer exception if delete Event method is called
Summary: Null Pointer exception if delete Event method is called
Status: RESOLVED FIXED
Alias: None
Product: Group2
Classification: Unclassified
Component: Event Section (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Assignee: Julian
URL:
Depends on:
Blocks:
 
Reported: 2021-12-06 10:14 HKT by Julian
Modified: 2021-12-06 10:16 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julian 2021-12-06 10:14:27 HKT
Calling the EventDelete method leads to a NullPointerException. The program terminates. 

Possible error source: Objects.requireNonNull(getEvent(id)).delete();
Event class -> delete method

How to create it:

Launching the CommandLine app and login. 
Create one Event and select the delete Event after in the terminal.
After entering the data to delete the created event it will through the the error  NullPointerException.

How to solve: Rewrite the delete method without .requireNull
Comment 1 Julian 2021-12-06 10:16:09 HKT
Done!