ArgumentNullException: Argument cannot be null
« on: August 03, 2016, 12:41:52 PM »
Hey there,

I received this error this morning and have no idea how it occurred in the first place. Yesterday all worked in Unity, this morning it started with that error right away. I did a complete git clone, have updated DoTween to the latest version to no avail. Then the error disappeared for some unknown reason, but now it is back again. My colleagues run the exact same repository without any problems.

This is the error log (which appears when Pause/ Playing the game):
ArgumentNullException: Argument cannot be null.
Parameter name: input
System.Text.RegularExpressions.Regex.Replace (System.String input, System.String replacement, Int32 count, Int32 startat)
System.Text.RegularExpressions.Regex.Replace (System.String input, System.String replacement)
System.Text.RegularExpressions.Regex.Replace (System.String input, System.String pattern, System.String replacement, RegexOptions options)
System.Text.RegularExpressions.Regex.Replace (System.String input, System.String pattern, System.String replacement)
DG.Tweening.Plugins.StringPlugin.SetChangeValue (DG.Tweening.Core.TweenerCore`3 t) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Plugins/StringPlugin.cs:57)
DG.Tweening.Tweener.DoStartup[String,String,StringOptions] (DG.Tweening.Core.TweenerCore`3 t) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Tweener.cs:141)
DG.Tweening.Core.TweenerCore`3[System.String,System.String,DG.Tweening.Plugins.Options.StringOptions].Startup () (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenerCore.cs:165)
DG.Tweening.Core.TweenManager.Update (UpdateType updateType, Single deltaTime, Single independentTime) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:372)
DG.Tweening.Core.DOTweenComponent.Update () (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/DOTweenComponent.cs:50)

Re: ArgumentNullException: Argument cannot be null
« Reply #1 on: August 03, 2016, 01:18:22 PM »
Futher note, I created an empty scene and there, a simple DOMove() worked.
Since the errors come directly from the TweenEngine, I have no idea where to start looking for the bug.

Re: ArgumentNullException: Argument cannot be null
« Reply #2 on: August 03, 2016, 02:07:41 PM »
Ok, nailed it down myself.

It was a DoText with a null value passed into the first parameter.
It would be nice if DoText would throw the error, because I couldn't see any reference from error to cause.

Case closed