Commit 3defa2817417b4268ee7febd70e9f9e6a756c08f
Fixed possible crash in the code completion
Null pointer reference in a case where the global namespace is
explicitly specified using ::
Task-number: QTCREATORBUG-351
Review-pending-by: Roberto Raggi
(cherry picked from commit b02d705ac4f4fb256c3d92340720e4fb972ba0f9)
| |   |
| 513 | 513 | q->isGlobal()); |
| 514 | 514 | const QList<Symbol *> candidates = resolveClassOrNamespace(nestedNameSpec, visibleScopes); |
| 515 | 515 | for (int j = 0; j < candidates.size(); ++j) { |
| expand(candidates.at(j)->asScopedSymbol()->members(), |
| visibleScopes, expandedScopes); |
| if (ScopedSymbol *scopedSymbol = candidates.at(j)->asScopedSymbol()) |
| expand(scopedSymbol->members(), visibleScopes, expandedScopes); |
| 518 | 518 | } |
| 519 | 519 | } |
| 520 | 520 | } |