mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-03 01:00:18 +01:00
Catch some exceptions can occured here
This commit is contained in:
parent
78cecb27d7
commit
c88b2be3a3
@ -106,7 +106,9 @@ public class FileCache {
|
|||||||
while (attributes.values().iterator().hasNext()) {
|
while (attributes.values().iterator().hasNext()) {
|
||||||
Attribute a = attributes.values().iterator().next();
|
Attribute a = attributes.values().iterator().next();
|
||||||
if (a != null) {
|
if (a != null) {
|
||||||
|
try {
|
||||||
writer.write("attribute=" + a.getName() + ";" + a.getAttributeType().getMinecraftId() + ";" + a.getAmount() + ";" + a.getOperation().getId() + ";" + a.getUUID().toString());
|
writer.write("attribute=" + a.getName() + ";" + a.getAttributeType().getMinecraftId() + ";" + a.getAmount() + ";" + a.getOperation().getId() + ";" + a.getUUID().toString());
|
||||||
|
} catch (Exception e) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -155,7 +157,9 @@ public class FileCache {
|
|||||||
while (attributes.values().iterator().hasNext()) {
|
while (attributes.values().iterator().hasNext()) {
|
||||||
Attribute a = attributes.values().iterator().next();
|
Attribute a = attributes.values().iterator().next();
|
||||||
if (a != null) {
|
if (a != null) {
|
||||||
|
try {
|
||||||
writer.write("attribute=" + a.getName() + ";" + a.getAttributeType().getMinecraftId() + ";" + a.getAmount() + ";" + a.getOperation().getId() + ";" + a.getUUID().toString());
|
writer.write("attribute=" + a.getName() + ";" + a.getAttributeType().getMinecraftId() + ";" + a.getAmount() + ";" + a.getOperation().getId() + ";" + a.getUUID().toString());
|
||||||
|
} catch (Exception e) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user