| Index: Source/WebCore/html/HTMLAppletElement.cpp
|
| ===================================================================
|
| --- Source/WebCore/html/HTMLAppletElement.cpp (revision 118016)
|
| +++ Source/WebCore/html/HTMLAppletElement.cpp (working copy)
|
| @@ -115,10 +115,11 @@
|
| if (!canEmbedJava())
|
| return 0;
|
|
|
| + if (!renderer() || !renderer()->isApplet())
|
| + return 0;
|
| +
|
| RenderApplet* applet = toRenderApplet(renderer());
|
| - if (applet)
|
| - applet->createWidgetIfNecessary();
|
| -
|
| + applet->createWidgetIfNecessary();
|
| return applet;
|
| }
|
|
|
|
|