Adding a NULL pointer check.
/*********************************************************
- * Copyright (C) 1998-2020 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2021 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
void
Poll_Exit(void)
{
- pollImpl->Exit();
-
- pollImpl = NULL;
+ if (pollImpl) {
+ pollImpl->Exit();
+ pollImpl = NULL;
+ }
}