mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
Bug 530481 - NPE in QuickFixSuppressProblem.prepareFor()
Change-Id: Id83ce8e4cabf644b89d18a6e1c3f1199ec23396e
This commit is contained in:
parent
5b29b5b5d8
commit
345f37874c
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ public class QuickFixSuppressProblem extends AbstractAstRewriteQuickFix implemen
|
|||
|
||||
@Override
|
||||
public void prepareFor(IMarker marker) {
|
||||
problemName = getProblem(marker).getName();
|
||||
IProblem problem = getProblem(marker);
|
||||
if (problem != null) {
|
||||
problemName = problem.getName();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue