From 970019d07554a94ff4ddda8a592624005fe0c4c4 Mon Sep 17 00:00:00 2001 From: Karthikeyan Periasamy Date: Tue, 18 Sep 2012 16:56:53 -0700 Subject: external/webkit: check element object for NULL Change-Id: I11ff74169b4ec0017400e9ef9451868ae00c6b1b --- Source/WebKit/android/jni/WebViewCore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp index 23bd873..f8cd5ca 100644 --- a/Source/WebKit/android/jni/WebViewCore.cpp +++ b/Source/WebKit/android/jni/WebViewCore.cpp @@ -1,8 +1,8 @@ /* * Copyright 2006, The Android Open Source Project - * Copyright (C) 2011, 2012 The Linux Foundation All rights reserved. * Copyright (C) 2012 Sony Ericsson Mobile Communications AB. * Copyright (C) 2012 Sony Mobile Communications AB + * Copyright (c) 2011,2012 The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -2830,7 +2830,7 @@ bool WebViewCore::isVisible(Node* node) else element = node->parentElement(); // check renderer - if (!element->renderer()) { + if (!element || !element->renderer()) { return false; } // check size -- cgit v1.1