Skip to content

[BP-BUG] Apartment Security Panel causes NullRef when using right after buying without Server saving #50

Description

@PLASMAchicken

========================== Advanced Event Error Tracker ==========================

PluginName: BPPlasmaGangs
Methode Name: OnSecurityPanelVan
ExecutionMode: Override
EventID: 540
Event Name: PlayerSecurityPanel

Full Signature: System.Void BPPlasmaGangs.BetterApartment.Patches.SecurityPanel::OnSecurityPanelVan(BrokeProtocol.Entities.ShPlayer player, BrokeProtocol.Entities.ShApartment apartment)
Assembly FullName: BPGangs, Version=1.0.8812.3694, Culture=neutral, PublicKeyToken=null
Assembly Location: /servers/brokeprotocol/Plugins/BPGangs.dll
InvocationList: 1

Methode Args: player, apartment
Type Methode: BrokeProtocol.Entities.ShPlayer, BrokeProtocol.Entities.ShApartment
Type Event : BrokeProtocol.Entities.ShPlayer, BrokeProtocol.Entities.ShApartment

Advanced Argument Report:
Arg 0: ShPlayer: Businessman2Black (BrokeProtocol.Entities.ShPlayer): Player: taximan Pos: (43.71, 0.00, 297.38) Int: 0
Arg 1: ShApartment: DoubleDoorMetalApartment (BrokeProtocol.Entities.ShApartment): Apartment: 0

Event Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
at BPPlasmaGangs.BetterApartment.Models.GangApartmentHandler.SecurityPanel (BPPlasmaGangs.BetterApartment.Models.BetterApartmentPlace betterApartmentPlace, BrokeProtocol.Entities.ShApartment apartment, BrokeProtocol.Entities.ShPlayer player) [0x0002f] in <4a7b4f6da1754ed0ad7dcb2fd3464448>:0
at BPPlasmaGangs.BetterApartment.Patches.SecurityPanel.OnSecurityPanelVan (BrokeProtocol.Entities.ShPlayer player, BrokeProtocol.Entities.ShApartment apartment) [0x00117] in <4a7b4f6da1754ed0ad7dcb2fd3464448>:0
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <28b4fbd9ae3d418cb7fc3aa652e567ce>:0
--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <28b4fbd9ae3d418cb7fc3aa652e567ce>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <28b4fbd9ae3d418cb7fc3aa652e567ce>:0
at BetterBPApiLoader.Core+SourceHandler_Exec_Patch.Prefix (System.Boolean& __result, BrokeProtocol.API.DelegateContainer __instance, System.Object[] args) [0x0009f] in <37ccd62bb9104dbfb83493e652b6844f>:0
Exception has been thrown by the target of an invocation.
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <28b4fbd9ae3d418cb7fc3aa652e567ce>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <28b4fbd9ae3d418cb7fc3aa652e567ce>:0
at BetterBPApiLoader.Core+SourceHandler_Exec_Patch.Prefix (System.Boolean& __result, BrokeProtocol.API.DelegateContainer __instance, System.Object[] args) [0x0009f] in <37ccd62bb9104dbfb83493e652b6844f>:0

========================== by PointLife Dev Team ==========================

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions