package com.grayben.riskExtractor.htmlScorer;

import org.jsoup.nodes.Attribute;
import org.jsoup.parser.Tag;

public class TagAndAttribute {
	private final Tag tag;
	private final Attribute attribute;

    public Tag getTag() {
        return tag;
    }

    public Attribute getAttribute() {
        return attribute;
    }

    public TagAndAttribute(Tag tag, Attribute attribute) {
		super();
		this.tag = tag;
		this.attribute = attribute;
	}
}

@@ -390,18 +390,347 @@
 uper();%0A
-%09%09
+        if (tag == null) %7B%0A            throw new NullPointerException(%0A                    %22Attempted to pass in null tag:Tag%22%0A            );%0A        %7D%0A        if (attribute == null) %7B%0A            throw new NullPointerException(%0A                    %22Attempted to pass in null attribute:Attribute%22%0A            );%0A        %7D%0A%0A        
 this.tag

Make throw E on null constructor arguments