diff --git a/structr-ui/src/main/resources/structr/js/schema.js b/structr-ui/src/main/resources/structr/js/schema.js
index <HASH>..<HASH> 100644
--- a/structr-ui/src/main/resources/structr/js/schema.js
+++ b/structr-ui/src/main/resources/structr/js/schema.js
@@ -3358,7 +3358,7 @@ let _Schema = {
 			};
 
 			// insert java methods if they are not being displayed
-			let javaMethodsOrEmpty = _Schema.getOnlyJavaMethodsIfFilteringIsActive(entity.schemaMethods);
+			let javaMethodsOrEmpty = _Schema.getOnlyJavaMethodsIfFilteringIsActive(entity?.schemaMethods ?? []);
 			for (let javaMethod of javaMethodsOrEmpty) {
 				data.schemaMethods.push({ id: javaMethod.id });
 			}
Bugfix: Fixes bulk editing of global schema methods