"NullReferenceException: Object reference not set to an instance of an object" when submitting from perforce window
repro:
edit and save scene
open perforce window
check your .unity file
fill in description
click submit selected
click 'Submit' that you want to submit both your .unity file and your .unity.meta file
observe error
Unity3d version: 5.0.1f1 Personal, 64 bit
OS: Windows 7 home edition 64 bit
full error:
NullReferenceException: Object reference not set to an instance of an object
P4Connect.Engine.GetLockState (Perforce.P4.FileMetaData aMeta) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:612)
P4Connect.Engine.SubmitFiles (P4Connect.PerforceConnection aConnection, System.String aChangeListDescription, System.Collections.Generic.List`1 aFiles) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:793)
P4Connect.PendingChanges+<>c__DisplayClassa.<SubmitFiles>b__8 (P4Connect.PerforceConnection con) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.PendingChanges.cs:917)
P4Connect.Engine.PerformConnectionOperation (System.Action`1 aConnectionOperation) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:744)
UnityEngine.Debug:LogException(Exception)
P4Connect.Engine:LogP4Exception(Exception) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:1541)
P4Connect.Engine:PerformConnectionOperation(Action`1) (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.Engine.cs:749)
P4Connect.PendingChanges:SubmitFiles() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.PendingChanges.cs:917)
P4Connect.PendingChanges:OnGUI() (at c:/workshop/guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.PendingChanges.cs:744)
UnityEditor.DockArea:OnGUI()
I haven't been able to reproduce this issue.
On a submit failure, Perforce will place files into a numbered change (where they are not seen by p4connect) so You might have to use P4V to move the .unity file back to the default change.
I haven't been able to reproduce this issue.
On a submit failure, Perforce will place files into a numbered change (where they are not seen by p4connect) so You might have to use P4V to move the .unity file back to the default change.
Then try again?
I tried this build and run into the same error with the same error stack. It seems that the object aMeta at 618 line need a null object check.