I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit f3576e54 authored by zzz's avatar zzz
Browse files

throw IllegalStateException rather than NPE if no context

parent 0325f6c4
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,9 @@ public class CSSHelper extends HelperBase {
if (userAgent != null && userAgent.contains("MSIE")) {
url += FORCE + "/";
} else {
// This is the first thing to use _context on most pages
if (_context == null)
throw new IllegalStateException("No contexts. This is usually because the router is either starting up or shutting down.");
String theme = _context.getProperty(PROP_THEME_NAME, DEFAULT_THEME);
url += theme + "/";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment