title: Reference to uninitialized composite error in PL/SQL procedure
body: <p>I'm a beginner in Oracle DB. I've created this object type:<br/></p>
  
  <pre><code>create or replace 
  TYPE behzadtype AS OBJECT 
  ( /* TODO enter attribute and method declarations here */ 
    SESSIONID Number,
    myID Number
  )
  </code></pre>
  
  <p>And this stored procedure:</p>
  
  <pre><code>create or replace 
  PROCEDURE PROCEDURE2(temp in behzadtype) AS 
  BEGIN
    insert into beh values(temp.myID,'behiheib');
  END PROCEDURE2;
  </code></pre>
  
  <p>I execute this stored procedure in run PL/SQL windows:<br/></p>
  
  <pre><code>DECLARE
    TEMP SYSTEM.BEHZADTYPE;
  BEGIN
    -- Modify the code to initialize the variable
    TEMP.myID := 9;
  
    PROCEDURE2(
      TEMP =&gt; TEMP
    );
  END;
  </code></pre>
  
  <p>But I then get the following error message:</p>
  
  <pre><code>Connecting to the database behi.
  ORA-06530: Reference to uninitialized composite
  ORA-06512: at line 5
  Process exited.
  Disconnecting from the database behi.
  </code></pre>
  
  <p>What happened? Why do I get that error?</p>