mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
Lets check for null job name when comparing two of them
This commit is contained in:
parent
f89ea85b0b
commit
297c68f91d
@ -145,6 +145,8 @@ public class Job {
|
||||
public boolean isSame(Job job) {
|
||||
if (job == null)
|
||||
return false;
|
||||
if (this.getName() == null && job.getName() == null)
|
||||
return true;
|
||||
return this.getName().equalsIgnoreCase(job.getName());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user