i just mean that instead of .get("")
use .get("", "")
and then you don't need to catch


On 15 January 2014 13:14, Maikel Wever <notifications@github.com> wrote:

> In
> src/main/java/jenkins/plugins/fogbugz/notifications/FogbugzNotifier.java:
>
> > @@ -58,7 +59,12 @@ public boolean perform(AbstractBuild build, Launcher launcher, BuildListener lis
> >          l.println("----------- Now sending build status to FogBugz ----------");
> >          l.println("----------------------------------------------------------");
> >
> > -        String givenCaseId = (String) build.getEnvVars().get("CASE_ID");
> > +        String givenCaseId = null;
> > +        try {
> > +            givenCaseId = (String) build.getEnvironment(listener).get("CASE_ID");
> > +        } catch (Exception e) {
> > +            log.log(Level.SEVERE, "Exception while fetching environment variables.", e);
>
> But build.getEnvVars is deprecated, and this is the new way. I do not know
> either why this can raise an Exception while the 'old' way can't.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/paylogic/fogbugz-plugin/pull/4/files#r8893653>
> .
>



-- 
Anatoly Bubenkov