1 package org.paneris.jammyjoes.mvp; 2 3 4 public class NullConverter implements Converter { 5 6 Converter _converter; 7 public NullConverter(Converter converter) { 8 _converter = converter; 9 } 10 11 public Object convert(String string) { 12 if (string == null ) { 13 return null; 14 } else { 15 return _converter.convert(string); 16 } 17 } 18 19 }