Added combobox check to avoid null pointer exceptions.
Created Document Change Listener