title: PL/SQL ORA-30625: method dispatch on NULL SELF argument is disallowed
body: <p>Oracle keeps giving me this error: ORA-30625: method dispatch on NULL SELF argument is disallowed.</p>
  
  <p>ORA-30625: method dispatch on NULL SELF argument is disallowed</p>
  
  <p>The code follows:</p>
  
  <p><pre>  CREATE OR REPLACE TYPE PEDIDO_TP AS OBJECT(
          ID_PEDIDO NUMBER,
          DATA_PAGAMENTO DATE,
          CANCELADO NUMBER(1),
          PENDURADO NUMBER(1),
          member procedure cancelapedido(n in number)
          );     </p>
  
  <code>create or replace type body PEDIDO_TP as
    member procedure
    cancelapedido(n in number) is
    begin
           DELETE FROM PEDIDO p
           WHERE p.ID_PEDIDO = n;
    end;
  end;
  
  CREATE TABLE PEDIDO OF PEDIDO_TP(
      ID_PEDIDO PRIMARY KEY
  );
  
  
  insert into PEDIDO values (PEDIDO_TP(1,'12/12/12',0,0));
  
  declare 
  x PEDIDO_TP;
  begin
  x.cancelapedido('1');
  end;&lt;code&gt;   
  </code></pre>