Glossary push doesn't work if transLang not specified

Description

Running https://tcms.engineering.redhat.com/run/250161/#caserun_10115634

[djansen@dhcp-40-38 pluraltest]$ mvn -e org.zanata:zanata-maven-plugin:3.7.0:glossary-push -Dzanata.url=http://localhost:8080/zanata/ -Dzanata.username=glossaryadmin -Dzanata.key=f92ee94a632ae91d62cfd5967ad1035b -Dzanata.glossaryFile=fr.po
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — zanata-maven-plugin:3.7.0:glossary-push (default-cli) @ standalone-pom —
[INFO] Please report Zanata bugs here: https://bugzilla.redhat.com/enter_bug.cgi?format=guided&product=Zanata
[INFO] Loading project config from /home/djansen/Documents/pluraltest/zanata.xml
[INFO] Loading user config from /home/djansen/.config/zanata.ini
[INFO] ignoring setDebug: use mvn -X to control debug logging
[INFO] client API version: 3.7.2, server API version: 3.7.2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.568s
[INFO] Finished at: Tue Jun 23 15:23:53 AEST 2015
[INFO] Final Memory: 11M/145M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.zanata:zanata-maven-plugin:3.7.0:glossary-push (default-cli) on project standalone-pom: Zanata mojo exception: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.zanata:zanata-maven-plugin:3.7.0:glossary-push (default-cli) on project standalone-pom: Zanata mojo exception
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Zanata mojo exception
at org.zanata.maven.ConfigurableMojo.execute(ConfigurableMojo.java:142)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: java.lang.NullPointerException
at org.zanata.common.LocaleId.<init>(LocaleId.java:34)
at org.zanata.client.commands.glossary.push.GlossaryPushCommand.getLocaleFromMap(GlossaryPushCommand.java:89)
at org.zanata.client.commands.glossary.push.GlossaryPushCommand.<init>(GlossaryPushCommand.java:71)
at org.zanata.maven.GlossaryPushMojo.initCommand(GlossaryPushMojo.java:111)
at org.zanata.maven.GlossaryPushMojo.initCommand(GlossaryPushMojo.java:41)
at org.zanata.maven.ConfigurableMojo.runCommand(ConfigurableMojo.java:149)
at org.zanata.maven.ConfigurableMojo.execute(ConfigurableMojo.java:140)
... 21 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Environment

None

Status

Assignee

Alex Eng

Reporter

Damian Jansen

Labels

Tested Version/s

None

Sprint

None

Fix versions

Affects versions

Priority

Medium
Configure