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

Skip to content
Snippets Groups Projects
Commit 83ab1d09 authored by str4d's avatar str4d
Browse files

Don't crash if RI or LS lookup returns null

Todo: determine why some lookups of OBEPs can be null, and handle the null case
in the UI.
parent af30dc8e
No related branches found
No related tags found
No related merge requests found
......@@ -83,11 +83,15 @@ public class NetDbDetailFragment extends I2PFragmentBase {
if (getArguments().getBoolean(IS_RI)) {
// Load RouterInfo
RouterInfo ri = getNetDb().lookupRouterInfoLocally(hash);
loadRouterInfo(ri);
if (ri != null)
loadRouterInfo(ri);
// TODO: Handle null case in UI
} else {
// Load LeaseSet
LeaseSet ls = getNetDb().lookupLeaseSetLocally(hash);
loadLeaseSet(ls);
if (ls != null)
loadLeaseSet(ls);
// TODO: Handle null case in UI
}
} catch (DataFormatException e) {
Util.e(e.toString());
......
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