Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfd89b35 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Don't forget to close files.

Change-Id: Ibfe465e1d7a947bbe40da17e8e8a2713856f95b5
parent 3766a7a2
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -140,6 +140,13 @@ public class UserManager {
            fallbackToSingleUser();
        } catch (XmlPullParserException pe) {
            fallbackToSingleUser();
        } finally {
            if (fis != null) {
                try {
                    fis.close();
                } catch (IOException e) {
                }
            }
        }
    }

@@ -265,13 +272,19 @@ public class UserManager {
                    }
                }
            }
            fis.close();

            UserInfo userInfo = new UserInfo(id, name, flags);
            return userInfo;

        } catch (IOException ioe) {
        } catch (XmlPullParserException pe) {
        } finally {
            if (fis != null) {
                try {
                    fis.close();
                } catch (IOException e) {
                }
            }
        }
        return null;
    }