Sign in to follow this  
FDsagizi

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this