ItEr41S23CUImportarTraballoRealizadoPorSubcontrata: Prevent null pointer exception.
This commit is contained in:
parent
d352c7c140
commit
d5584dda99
1 changed files with 2 additions and 1 deletions
|
|
@ -164,7 +164,8 @@ public class AdvanceType extends BaseEntity {
|
|||
}
|
||||
|
||||
public static boolean equivalentInDB(AdvanceType type, AdvanceType otherType) {
|
||||
if (type.getId() == null || otherType.getId() == null) {
|
||||
if (type == null || type.getId() == null || otherType == null
|
||||
|| otherType.getId() == null) {
|
||||
return false;
|
||||
}
|
||||
return type.getId().equals(otherType.getId());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue