-
Notifications
You must be signed in to change notification settings - Fork 727
Don't throw exception while malloc failed #860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
3af6dd0
cec9a89
559803d
939c1e5
5d9da8d
ede9113
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,8 +127,13 @@ bh_hash_map_find(HashMap *map, void *key) | |
| HashMapElem *elem; | ||
| void *value; | ||
|
|
||
| if (!map || !key) { | ||
| LOG_ERROR("HashMap find elem failed: map or key is NULL.\n"); | ||
| if (!map) { | ||
|
||
| LOG_ERROR("HashMap find elem failed: map is NULL.\n"); | ||
| return NULL; | ||
| } | ||
|
|
||
| if (!key) { | ||
| LOG_VERBOSE("HashMap find elem failed: key is NULL.\n"); | ||
| return NULL; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.