Commit fe376e99 authored by tpietzsch's avatar tpietzsch
Browse files

Merge pull request #2 from hkmoon/backward-compatible

Make safer way to handle json reader
parents 9363b04d cc6fa5a5
......@@ -44,7 +44,7 @@ public class BigDataBrowserPlugIn implements PlugIn
BufferedImage image = null;
try
{
image = ImageIO.read( new URL( "http://fiji.sc/_images/a/ae/Fiji-icon.png" ) );
image = ImageIO.read( getClass().getResourceAsStream( "/fiji.png" ) );
}
catch ( final IOException e )
{
......@@ -101,6 +101,8 @@ public class BigDataBrowserPlugIn implements PlugIn
thumbnailUrl = reader.nextString();
else if ( name.equals( "datasetUrl" ) )
datasetUrl = reader.nextString();
else
reader.nextString();
}
if ( id != null )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment