1
0
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:
Zrips 2018-05-17 13:32:20 +03:00
parent f89ea85b0b
commit 297c68f91d

View File

@ -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());
}