in this case input_row.ColumnName.contains("Not") will throw a null pointer exception, as there is no object for which the method contains() can be called.
You Need to ensure you have an object first, you might try this :
(input_row.ColumnName==null?new String(""):input_row.ColumnName).contains("Not")
you can replace new String("") with new String("Not") if you want to have Default NOT in the NULL case
HTH
PS: if your can ask for equality then it is best practise to use: "Not".equals(input_row.ColumnName) which reduces to "Not".equals(null) and results into false then