diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-09-02 07:41:47 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-09-02 07:41:47 (GMT) |
commit | 9260c597cc45e15943ad851f934ebb6e5ac1010a (patch) | |
tree | 73ba775d34e63b95000d40b256e00ed332a10bcd /src | |
parent | 9b196634ab888acffa4582fcdb812a454c8b010f (diff) | |
download | Qt-9260c597cc45e15943ad851f934ebb6e5ac1010a.zip Qt-9260c597cc45e15943ad851f934ebb6e5ac1010a.tar.gz Qt-9260c597cc45e15943ad851f934ebb6e5ac1010a.tar.bz2 |
Add an assert before we dereference a null pointer
Reviewed-by: Aaron Kennedy
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/qml/qmlvme.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlvme.cpp b/src/declarative/qml/qmlvme.cpp index 7907195..a49cbd3 100644 --- a/src/declarative/qml/qmlvme.cpp +++ b/src/declarative/qml/qmlvme.cpp @@ -175,6 +175,7 @@ QObject *QmlVME::run(QStack<QObject *> &stack, QmlContext *ctxt, QmlCompiledData } QmlDeclarativeData *ddata = QmlDeclarativeData::get(o); + Q_ASSERT(ddata); ddata->outerContext = ctxt; ddata->lineNumber = instr.line; ddata->columnNumber = instr.create.column; |