Bug 709 - task.getPriorityNumber() doesn't return null when there is no priority
Summary: task.getPriorityNumber() doesn't return null when there is no priority
Status: CONFIRMED
Alias: None
Product: CS3343_SEP_group8
Classification: Unclassified
Component: Model (show other bugs)
Version: version0
Hardware: PC Windows
: --- major
Assignee: Meryem
URL:
Depends on:
Blocks:
 
Reported: 2022-11-16 16:46 HKT by Meryem
Modified: 2022-11-16 16:46 HKT (History)
0 users

See Also:


Attachments
task.getPriorityNumber() should be null (16.58 KB, image/png)
2022-11-16 16:46 HKT, Meryem
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Meryem 2022-11-16 16:46:23 HKT
Created attachment 123 [details]
task.getPriorityNumber() should be null

Problem location : Task.java
Problem found : TestTask.java

Creating a task without a priority and then calling the method getPriority() provoke an error

Solution : should check if the priority is null before trying to return it