Review Request 129600: segfault when ExpressionVisitor's lastType is nullptr
Sven Brauch
mail at svenbrauch.de
Fri Dec 2 08:10:05 UTC 2016
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/129600/#review101208
-----------------------------------------------------------
Thanks for caring. I would prefer to change the expression visitor so it never returns a null type, i.e. initialize it to AbstractType::Ptr(new IntegralType(IntegralType::TypeMixed)) or so though.
- Sven Brauch
On Dec. 2, 2016, 5:24 a.m., Leslie Zhai wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/129600/
> -----------------------------------------------------------
>
> (Updated Dec. 2, 2016, 5:24 a.m.)
>
>
> Review request for KDevelop and Kevin Funk.
>
>
> Repository: kdev-ruby
>
>
> Description
> -------
>
> When using kdevelop import redmine (a bug tracker written in ruby http://www.redmine.org/) segfault when ExpressionVisitor's lastType is nullptr, so I simply added the check
>
> ```
> if (ev.lastType() != nullptr)
> ```
>
>
> Diffs
> -----
>
> duchain/builders/declarationbuilder.cpp 841fc2e
>
> Diff: https://git.reviewboard.kde.org/r/129600/diff/
>
>
> Testing
> -------
>
> import redmine
>
>
> Thanks,
>
> Leslie Zhai
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20161202/4aa3d535/attachment-0001.html>
More information about the KDevelop-devel
mailing list