Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool UEngine::CommitMapChange( FWorldContext &Context )
- {
- ....
- LevelStreamingObject = Context.World()->StreamingLevels[j];
- if (LevelStreamingObject != NULL)
- {
- ....
- }
- else
- {
- check(LevelStreamingObject);
- UE_LOG(LogStreaming, Log,
- TEXT("Unable to handle streaming object %s"),
- *LevelStreamingObject->GetName());
- }
- ....
- }
- This suspicious code was found in UnrealEngine4 project by PVS-Studio static code analyzer.
- Warning message is:
- V522 Dereferencing of the null pointer 'LevelStreamingObject' might take place. unrealengine.cpp 10768
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment