Ghidra is a software reverse engineering (SRE) framework
GP-0 fix NPE in decompiler text finder when decompiler errors
dev7473685ca24f00014d
diff --git a/Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/plugin/core/search/DecompilerTextFinder.java b/Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/plugin/core/search/DecompilerTextFinder.javaindex 1329048010..38a0ade391 100644--- a/Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/plugin/core/search/DecompilerTextFinder.java+++ b/Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/plugin/core/search/DecompilerTextFinder.java@@ -158,6 +158,9 @@ public class DecompilerTextFinder {}ClangTokenGroup tokens = results.getCCodeMarkup();+ if (tokens == null) {+ return null;+ }List<ClangLine> lines = DecompilerUtils.toLines(tokens);// (?s) - enable dot all mode