mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-05-31 09:21:36 +00:00
- added null pointer validation to any relevant exported function. In most cases null pointers were already being treated as 'do nothing', but there's several places where this can make the code silently fail so in these cases a VM exception will be raised, once the VM's exception handling has been repaired to provide useful diagnostics. (Right now all it does is catch the exception, print a useless message and return to the caller as if nothing has happened.)
This commit is contained in:
parent
82c2670617
commit
f9441cd9d9
17 changed files with 160 additions and 136 deletions
|
@ -247,7 +247,7 @@ DEFINE_ACTION_FUNCTION(AActor, CheckClass)
|
|||
PARAM_BOOL_DEF (match_superclass);
|
||||
|
||||
self = COPY_AAPTR(self, pick_pointer);
|
||||
if (self == NULL)
|
||||
if (self == nullptr || checktype == nullptr)
|
||||
{
|
||||
ret->SetInt(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue