| Summary: | Fix NPE for Window-Icon's PNGPixelRect for unresolved location, i.e. null URLConnections | ||
|---|---|---|---|
| Product: | [JogAmp] Newt | Reporter: | Xerxes Rånby <xerxes> |
| Component: | core | Assignee: | Sven Gothel <sgothel> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | --- | ||
| Version: | 2.3.2 | ||
| Hardware: | pc_x86_64 | ||
| OS: | linux | ||
| Type: | DEFECT | SCM Refs: |
24d30eec425ca6c62f72e7c218a9149777dbec52
|
| Workaround: | --- | ||
| Bug Depends on: | 1237 | ||
| Bug Blocks: | 1199 | ||
|
Description
Xerxes Rånby
2015-09-29 11:43:05 CEST
it is the line
final URLConnection urlConn = resources.resolve(i);
in JoglUtilPNGIcon.java:48
that returns a null urlConn
resources is com.jogamp.common.util.IOUtil$ClassResources@5b6f7412
urlConn is null
Testing w/ jogl/make/scripts/tests.sh USE_BUILDDIR=1, discloses this issue - since the icons are available in jar only. Handling all unresolved resources, i.e. null URLConnection, is required. Further more, the icon list passed via property 'newt.window.icons' shall be separated by comma as well. This allows passing the list via scripts more conveniently. commit 24d30eec425ca6c62f72e7c218a9149777dbec52
Bug 1238 - Fix NPE for Window-Icon's PNGPixelRect for unresolved location; Bug 1199 - Add setting to disable default window icons
Bug 1238 - Fix NPE for Window-Icon's PNGPixelRect for unresolved location, i.e. null URLConnections
Testing w/ jogl/make/scripts/tests.sh USE_BUILDDIR=1,
discloses this issue - since the icons are available in jar only.
Handling all unresolved resources, i.e. null URLConnection,
is required.
Further more, the icon list passed via property 'newt.window.icons'
shall be separated by comma as well.
This allows passing the list via scripts more conveniently.
-Dnewt.window.icons="newt/data/jogamp-16x16.png,newt/data/jogamp-32x32.png"
+++
Bug 1199 - Add setting to disable default window icons
This patch also allows disabling JogAmp's own window icons
by simply defining a non-existing location, i.e.
-Dnewt.window.icons="null,null"
|