Yep, it would do the job too.
Le 26 oct. 2013 20:11, "Benoit Sigoure" <notifications@github.com> a écrit :

> In src/tsd/GraphHandler.java:
>
> > @@ -62,7 +62,7 @@
> >      LoggerFactory.getLogger(GraphHandler.class);
> >
> >    private static final boolean IS_WINDOWS =
> > -    System.getProperty("os.name").contains("Windows");
> > +    (System.getProperty("os.name") != null && System.getProperty("os.name").contains("Windows"));
>
> Would this work instead: System.getProperty("os.name",
> "").contains("Windows");
>
> getProperty can get a second argument to use as a default value.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/OpenTSDB/opentsdb/pull/251/files#r7234516>
> .
>