Merge pull request #8332 from Mailaender/language-extract-nre
Fixed an explicit NullReferenceException in ExtractLanguageStringsCommand
This commit is contained in:
@@ -56,7 +56,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
foreach (var node in nodes)
|
||||
{
|
||||
var alreadyTranslated = node.Value.Value != null && node.Value.Value.Contains('@');
|
||||
if (translatables.Contains(node.Key) && !alreadyTranslated)
|
||||
if (translatables.Contains(node.Key) && !alreadyTranslated && parentLabel != null)
|
||||
{
|
||||
var translationKey = "{0}-{1}-{2}".F(container.Replace('_', '-'), parentLabel.Replace('_', '-'), node.Key.ToUpper());
|
||||
Console.WriteLine("\t{0}: {1}", translationKey, node.Value.Value);
|
||||
|
||||
Reference in New Issue
Block a user