Commit 89e28e52 authored by Stephanie Gawroriski's avatar Stephanie Gawroriski
Browse files

Ignore lookup for resources with a blank name.

parent e72c7a45
......@@ -54,6 +54,7 @@ More detailed changes:
* Corrected bug in `__CanSetPrintStream__` where if it were set to itself
then it could lead to infinite recursion, instead if this kind of
stream is attempted to be set it will use the target.
* If the name of the requested resource is blank, ignore it.
* If a resource was not found, do a traditional search of the classpath
for the given resource. This technically is not valid, however some
games use the wrong class when looking up resources. Note that the
......
......@@ -202,6 +202,10 @@ public final class Class<T>
if (__name == null)
throw new NullPointerException("NARG");
// Do not lookup blank resources
if (__name.isEmpty())
return null;
// This is not within any JAR, so nothing will ever be found
String injar = this._data.inJar();
if (injar == null)
......
Markdown is supported
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