mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GT-3198 - fix FunctionBitPatternExplorerPlugin xml handling - codereview
Tweak output format, catch null value.
This commit is contained in:
parent
2c9b771d13
commit
e5184277ef
3 changed files with 22 additions and 2 deletions
|
@ -166,7 +166,9 @@ public class ContextRegisterInfo {
|
|||
|
||||
Element e = new Element(XML_ELEMENT_NAME);
|
||||
e.setAttribute("contextRegister", contextRegister);
|
||||
e.setAttribute("value", value);
|
||||
if (value != null) {
|
||||
e.setAttribute("value", value);
|
||||
}
|
||||
|
||||
return e;
|
||||
}
|
||||
|
|
|
@ -287,7 +287,7 @@ public class FileBitPatternInfo {
|
|||
Element rootEle = toXml();
|
||||
Document doc = new Document(rootEle);
|
||||
|
||||
XmlUtilities.writeDocToFile(doc, destFile);
|
||||
XmlUtilities.writePrettyDocToFile(doc, destFile);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue