Clarify effects parsing code to fix static analyzer report
Although most likely a false positive, the report correctly indicates
that the logic was error-prone as written. Rewrite to make the
avoidance of nullptr dereferencing explicit.
As a drive-by, degrade severity of the warning messages from the
effetcs parsing function. Since the parsing is very rudimentary, the
issues encountered may likely be just limitations in the parser, not
problems in the source file.
Pick-to: 6.11
Change-Id: I4dfddb7b4590b2ba96972aa6e4bc8c0315f56892
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>