package com.grayben.riskExtractor.htmlScorer.partScorers.elementScorers;

import com.grayben.riskExtractor.htmlScorer.partScorers.Scorer;
import com.grayben.riskExtractor.htmlScorer.partScorers.tagScorers.TagAndAttributeScorer;
import com.grayben.riskExtractor.htmlScorer.partScorers.tagScorers.TagEmphasisScorer;
import org.jsoup.nodes.Element;

/**
 * Score the emphasis of an {@link org.jsoup.nodes.Element} based upon the Tag and Attributes it contains.
 */
public class EmphasisElementScorer extends Scorer<Element> {

	public final static String SCORE_LABEL = "element-emphasis";
	
	TagEmphasisScorer tagEmphasisScorer;
	TagAndAttributeScorer comboScorer;

	public EmphasisElementScorer() {
		super(SCORE_LABEL);
	}

	@Override
	public int score(Element input) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String getScoreLabel() {
		return null;
	}

}

@@ -766,58 +766,265 @@
 ) %7B%0A
-%09%09// TODO Auto-generated method stub%0A%09%09return 0;%0A%09
+        validateScoreInput(input);%0A        return 0;%0A%09%7D%0A%0A    private void validateScoreInput(Element input)%7B%0A        if (input == null)%7B%0A            throw new NullPointerException(%0A                    %22The input cannot be null%22%0A            );%0A        %7D%0A    
 %7D%0A%0A%09

Add null check