Avoid crashing by returning a valid BView pointer
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2993 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e3057c0adb
commit
8239aad969
@ -4,6 +4,7 @@
|
|||||||
* DESCR:
|
* DESCR:
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
#include <MediaTheme.h>
|
#include <MediaTheme.h>
|
||||||
|
#include <StringView.h>
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
@ -56,7 +57,7 @@ BMediaTheme::ViewFor(BParameterWeb *web,
|
|||||||
BMediaTheme *using_theme)
|
BMediaTheme *using_theme)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
return NULL;
|
return new BStringView(BRect(0,0,200,30), "", "No BMediaTheme, sorry!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user