Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PLASMAchicken opened this issue Mar 14, 2024 · 0 comments
Assignees
Labels
brokeprotocol bug Something isn't working gangs

Comments

@PLASMAchicken
Copy link
Member

========================== 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 ==========================

@PLASMAchicken PLASMAchicken added bug Something isn't working brokeprotocol gangs labels Mar 14, 2024
@PLASMAchicken PLASMAchicken self-assigned this Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brokeprotocol bug Something isn't working gangs
Projects
None yet
Development

No branches or pull requests

1 participant