mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
fixed NPE
This commit is contained in:
parent
6a4bd1e7c1
commit
24f662d5ba
1 changed files with 4 additions and 1 deletions
|
@ -145,7 +145,10 @@ public abstract class AbstractCodanProblemDetailsProvider {
|
|||
return ""; //$NON-NLS-1$
|
||||
IProblem problem = CodanRuntime.getInstance().getCheckersRegistry()
|
||||
.getDefaultProfile().findProblem(id);
|
||||
return escapeForLink(problem.getDescription());
|
||||
String desc = problem.getDescription();
|
||||
if (desc == null)
|
||||
return ""; //$NON-NLS-1$
|
||||
return escapeForLink(desc);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue