1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

fixed NPE

This commit is contained in:
Alena Laskavaia 2010-11-17 01:48:53 +00:00
parent 6a4bd1e7c1
commit 24f662d5ba

View file

@ -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);
}
/**