Skip to content
Permalink
Browse files

Correctly create associative arrays in a few places

  • Loading branch information...
PseudoKnight committed Sep 9, 2019
1 parent 340b111 commit 1b3a412ebcba4a4a4b9880682a9fb596b386cdd2
@@ -113,7 +113,7 @@ public static String getExceptionName(ConfigRuntimeException ex) {
* @return
*/
public CArray getExceptionObject() {
CArray ret = new CArray(Target.UNKNOWN);
CArray ret = CArray.GetAssociativeArray(Target.UNKNOWN);
ret.set("classType", this.getExceptionType(), Target.UNKNOWN);
ret.set("message", this.getMessage());
CArray stackTrace = new CArray(Target.UNKNOWN);
@@ -500,7 +500,7 @@ public String toString() {
}

public CArray getObjectFor() {
CArray element = new CArray(Target.UNKNOWN);
CArray element = CArray.GetAssociativeArray(Target.UNKNOWN);
element.set("id", getProcedureName());
try {
String name = "Unknown file";
@@ -54,7 +54,7 @@ public Mixed exec(Target t, Environment environment, Mixed... args) throws Confi
TaskManager tm = environment.getEnv(GlobalEnv.class).GetTaskManager();
CArray ret = new CArray(t);
for(TaskHandler task : tm.getTasks()) {
CArray tt = new CArray(t);
CArray tt = CArray.GetAssociativeArray(t);
tt.set("id", new CInt(task.getID(), t), t);
tt.set("type", task.getType().name());
tt.set("state", task.getState().name());

0 comments on commit 1b3a412

Please sign in to comment.
You can’t perform that action at this time.