You need the column name, compare:

select decode(dummy,NULL,rpad(dummy,50,'A'),dummy) from dual;

select decode(dummy,'X',rpad(dummy,50,'A'),dummy) from dual;