Jump to content
  • Advertisement
Sign in to follow this  
FDsagizi

bug with show code line after null pointer exception and "for"

This topic is 2133 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi smile.png

 

Error:

 

 The script ended with an exception.

    funcf: void startGame(string&inout)

    sect: Start.as

    line: 32

    desc: Null pointer access

 

Code:


class A
{
    int GetCount(){ return 10; }
}


void startGame( string &param )
{


    A @a = null;    // line 23
    
    for( int i=0; i < a.GetCount(); i++ ) // line 25
    {                        
        
        
        
        
        
        int some_val;    // line 32
    }
}
 

 

Edited by FDsagizi

Share this post


Link to post
Share on other sites
Advertisement

i dont know bug this or not smile.png

 

Unexpected end of file : line 16

 

but need show line 23

 

Code:

 

 

 

void F()
{                // Line 16
    int a1;
    int a2;
    int a3;
    int a4;
    int a5;

    F()   '  ;    // Line 23
}
 

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!