mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 11:21:29 +00:00
Fixed a possible crash if config has not yet been initialized on startup.
This commit is contained in:
parent
ffefe46eed
commit
4e254984ca
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener {
|
|||
*/
|
||||
public List<Node> getNodes() {
|
||||
if (mConfig == null)
|
||||
return null;
|
||||
return new ArrayList<>();
|
||||
|
||||
try {
|
||||
return getNodes(mConfig.getJSONArray("Nodes"));
|
||||
|
|
Loading…
Reference in a new issue