Skip to content

Pointer on which a method is called can be null. #11

@vlad-coteanu-unibuc

Description

@vlad-coteanu-unibuc

The bellow composition would throw an exception because of the line of code referenced. In the structure m_pInputItem->Clone();, p_InputItem can be null. I had to add a null check to pass this problem.

	%
	for_t(it = 1; it <= limit; it++)
	{
		foreach_s(iter) { SPLIT # CONT } # INCREASE
	}
	%
	foreach_s(iter / 2) 
	{
		DECREASE # (EXEC # EXEC)
	}
	%
	for_t(it = 1; it <= limit; it++)
	{
		foreach_s(iter) { RES # AGG } # DECREASE
	}
	%
	STOP

pCloned->m_pInputItem = m_pInputItem->Clone();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions