mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-09-07 04:38:03 +02: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) {
|
||||||
writer.write("attribute=" + a.getName() + ";" + a.getAttributeType().getMinecraftId() + ";" + a.getAmount() + ";" + a.getOperation().getId() + ";" + a.getUUID().toString());
|
try {
|
||||||
|
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) {
|
||||||
writer.write("attribute=" + a.getName() + ";" + a.getAttributeType().getMinecraftId() + ";" + a.getAmount() + ";" + a.getOperation().getId() + ";" + a.getUUID().toString());
|
try {
|
||||||
|
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