Skip to content
Snippets Groups Projects
Commit 3df0924d authored by Florian Lugou's avatar Florian Lugou
Browse files

fixed null pointer exception in AVATAR2ProVerif

parent 76b6f767
No related branches found
No related tags found
No related merge requests found
...@@ -1280,7 +1280,10 @@ public class AVATAR2ProVerif implements AvatarTranslator { ...@@ -1280,7 +1280,10 @@ public class AVATAR2ProVerif implements AvatarTranslator {
if (pragma instanceof AvatarPragmaAuthenticity) { if (pragma instanceof AvatarPragmaAuthenticity) {
AvatarAttributeState attrA = ((AvatarPragmaAuthenticity) pragma).getAttrA (); AvatarAttributeState attrA = ((AvatarPragmaAuthenticity) pragma).getAttrA ();
AvatarAttributeState attrB = ((AvatarPragmaAuthenticity) pragma).getAttrB (); AvatarAttributeState attrB = ((AvatarPragmaAuthenticity) pragma).getAttrB ();
if (attrA.getState ().getName ().equals (_asme.getName ())) { if (attrA.getAttribute ().getBlock () == arg.block && attrA.getState ().getName ().equals (_asme.getName ())) {
TraceManager.addDev ("DEBUG: " + attrA.getAttribute ());
TraceManager.addDev ("DEBUG: " + attrA.getAttribute ().getBlock ());
TraceManager.addDev ("DEBUG: " + arg.attributeCmp.get (attrA.getAttribute()));
String sp = "authenticity__" + AVATAR2ProVerif.makeAttrName (attrA.getAttribute ().getBlock ().getName (), attrA.getAttribute ().getName (), _asme.getName ()) + " (" + AVATAR2ProVerif.makeAttrName (attrA.getAttribute ().getBlock ().getName (), attrA.getAttribute ().getName (), arg.attributeCmp.get (attrA.getAttribute ()).toString ()) + ")"; String sp = "authenticity__" + AVATAR2ProVerif.makeAttrName (attrA.getAttribute ().getBlock ().getName (), attrA.getAttribute ().getName (), _asme.getName ()) + " (" + AVATAR2ProVerif.makeAttrName (attrA.getAttribute ().getBlock ().getName (), attrA.getAttribute ().getName (), arg.attributeCmp.get (attrA.getAttribute ()).toString ()) + ")";
if (!authenticityEvents.contains (sp)) { if (!authenticityEvents.contains (sp)) {
authenticityEvents.add (sp); authenticityEvents.add (sp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment