Created
November 16, 2011 03:54
-
-
Save j0sh/1369191 to your computer and use it in GitHub Desktop.
Check for valid input to GetProtocolHandler.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/sources/thelib/src/application/baseclientapplication.cpp b/sources/thelib/src/application/baseclientapplication.cpp | |
| index f308186..063b179 100644 | |
| --- a/sources/thelib/src/application/baseclientapplication.cpp | |
| +++ b/sources/thelib/src/application/baseclientapplication.cpp | |
| @@ -154,6 +154,7 @@ bool BaseClientApplication::StreamNameAvailable(string streamName, | |
| } | |
| BaseAppProtocolHandler *BaseClientApplication::GetProtocolHandler(BaseProtocol *pProtocol) { | |
| + if (NULL == pProtocol) return NULL; | |
| return GetProtocolHandler(pProtocol->GetType()); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment