Android: Catch nullPointerExcetion for parentLayout
Add exception handling for non-existent parent for m_editText in EditPopupMenu Pick-to: 6.7 Change-Id: Ie01e1346185b494c1ac646ccfa9ed4a96c4ed85e Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit e39ea199167270971f45ab6c4b9c2c6c66b4b2ff) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
5ee47a970a
commit
258d90222d
@ -82,6 +82,9 @@ class EditPopupMenu implements ViewTreeObserver.OnPreDrawListener, View.OnLayout
|
||||
} catch (ClassCastException e) {
|
||||
Log.w(QtNative.QtTAG, "QtEditText " + m_editText + " parent is not a QtLayout, " +
|
||||
"requestLayout() skipped");
|
||||
} catch (NullPointerException e) {
|
||||
Log.w(QtNative.QtTAG, "QtEditText " + m_editText + " does not have a parent, " +
|
||||
"requestLayout() skipped");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user