Update BView to call debugger when passed a NULL archive for its archive constructor. This means there is no need to check for a NULL archive in BSeparatorView. Also update BUnarchiver and friends to be NULL safe. Pointed out by Adrien, fixes CID 1754.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38063 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -405,6 +405,8 @@ BView::BView(BMessage* archive)
|
||||
BHandler(BUnarchiver::PrepareArchive(archive))
|
||||
{
|
||||
BUnarchiver unarchiver(archive);
|
||||
if (!archive)
|
||||
debugger("BView cannot be constructed from a NULL archive.");
|
||||
|
||||
BRect frame;
|
||||
archive->FindRect("_frame", &frame);
|
||||
|
||||
Reference in New Issue
Block a user