mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Bug 528124 - NPE in CCOdeFormatter.findOverlappingPreprocessorStatement()
Change-Id: I4669d4938551506d7a06624b4318253cc4ecc643
This commit is contained in:
parent
f8b30717ce
commit
e2c5592d9d
1 changed files with 3 additions and 0 deletions
|
@ -165,6 +165,9 @@ public class CCodeFormatter extends CodeFormatter {
|
|||
} catch (CoreException e) {
|
||||
throw new AbortFormatting(e);
|
||||
}
|
||||
if (ast == null) {
|
||||
throw new AbortFormatting("AST is null"); //$NON-NLS-1$
|
||||
}
|
||||
formatRegions(source, regions, edits, ast);
|
||||
} finally {
|
||||
index.releaseReadLock();
|
||||
|
|
Loading…
Add table
Reference in a new issue