Page MenuHomeFeedback Tracker

NULL Pointer in Experimental Build - 1.2.1.66
Closed, ResolvedPublic

Description

Game Version number: Experimental 1.2.1.66
Modded?: No
Issue Description:

There is a NULL pointer in: "SCR_ConsumableItemComponent"

	void ApplyItemEffect(IEntity target, IEntity user, ItemUseParameters animParams, IEntity item, bool deleteItem = true)
	{
		if (!m_ConsumableEffect)
			return;

		m_ConsumableEffect.ApplyEffect(target, user, item, animParams);    **user = NULL if AI is using it**

		ModeClear(EGadgetMode.IN_HAND);
		
		if (deleteItem)
			RplComponent.DeleteRplEntity(GetOwner(), false);
	}
  SCRIPT    (E): Virtual Machine Exception

Reason: NULL pointer to instance. Variable 'user'

Class:      'SCR_ConsumableItemComponent'
Function: 'ApplyItemEffect'
Stack trace:
Scripts/Game/Components/Gadgets/SCR_ConsumableItemComponent.c:36 Function ApplyItemEffect
Scripts/Game/Components/Gadgets/SCR_ConsumableItemComponent.c:87 Function OnApplyToCharacter
Scripts/Game/Character/SCR_CharacterControllerComponent.c:189 Function OnItemUseEnded
WORLD        : UpdateEntities

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

R34P3R created this task.Sun, Sep 8, 2:33 PM
R34P3R updated the task description. (Show Details)
Geez changed the task status from New to Awaiting internal Testing.Tue, Sep 10, 12:41 PM
Geez closed this task as Resolved.Fri, Sep 20, 11:12 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello R34P3R.
This issue should be resolved in the next version.
Regards,
Geez