Quantcast
Channel: RESX Manager
Viewing all articles
Browse latest Browse all 252

Commented Unassigned: null ref ex when store all to DB [3153]

$
0
0
2015-02-25 14:08:45,041 [4] ERROR ResourceManager.Client.MainForm [(null)] - Error while processing task.
System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at ResourceManager.Storage.TranslationStorageManager.<>c__DisplayClass14.<Store>b__8(KeyValuePair`2 data)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
at ResourceManager.Storage.TranslationStorageManager.Store(VSSolution solution)
at ResourceManager.Client.MainForm.storeAllTranslations()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
at ResourceManager.Storage.TranslationStorageManager.<>c__DisplayClass14.<Store>b__8(KeyValuePair`2 data)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
at ResourceManager.Storage.TranslationStorageManager.Store(VSSolution solution)
at ResourceManager.Client.MainForm.storeAllTranslations()
at System.Threading.Tasks.Task.Execute()<---
Comments: ** Comment from web user: esinek **

I believe it has to do with the topCandidate variable being null in the TranslationStorageManager.cs file. The code inside the if block that checks topCandidate against null doesn't make sense since it references topCandidate and it will always be null in that block.

The offending resource entry value was a single space (<value> </value>) as opposed to null value (<value/>).

I haven't dug into it any further.


Viewing all articles
Browse latest Browse all 252

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>