package com.grayben.riskExtractor.headingMarker;

import java.util.Collections;
import java.util.List;

/**
 * Created by beng on 1/12/2015.
 */
public class UnmodifiableText {

    private List<String> stringList;

    public UnmodifiableText(List<String> stringList){
        this.stringList = stringList;
    }

    public UnmodifiableText(UnmodifiableText unmodifiableText){
        this.stringList = unmodifiableText.getStringList();

    }

    public List<String> getStringList(){
        return Collections.unmodifiableList(this.stringList);
    }
}

@@ -259,24 +259,168 @@
 tringList)%7B%0A
+        if(stringList == null)%0A            throw new NullPointerException(%22Attempted %22 +%0A                    %22to construct with null pointer%22);%0A
         this
@@ -445,16 +445,16 @@
 ngList;%0A
-
     %7D%0A%0A 
@@ -528,30 +528,17 @@
     this
-.stringList = 
+(
 unmodifi
@@ -561,16 +561,17 @@
 ngList()
+)
 ;%0A%0A    %7D

Make constructor throw NullPointerException where appropriate