remove npe when element not found
This commit is contained in:
@@ -89,7 +89,6 @@ struct Hash_Map {
|
|||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
return data[index].object;
|
return data[index].object;
|
||||||
}
|
}
|
||||||
int a = *((int*)(nullptr));
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user