Commit bbd88172 authored by Daniel Honsel's avatar Daniel Honsel
Browse files

minor bugfix

parent b82f8c22
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -43,6 +43,9 @@ class LogValidator extends AbstractDeclarativeValidator {

	@Check
	def checkLogStatementFormat(FunctionStatementList functionStmList) {
		if (!activeProfile.checkLogStatementFormat) 
			return;
		
		val parentTC = functionStmList.findDesiredParent(TestcaseDef)
		val parentFunc = functionStmList.findDesiredParent(FunctionDef)
		val parentAlt = functionStmList.findDesiredParent(AltstepDef)
@@ -61,6 +64,9 @@ class LogValidator extends AbstractDeclarativeValidator {

	@Check
	def checkLogStatementFormat(ModuleControlBody ctrl) {
		if (!activeProfile.checkLogStatementFormat) 
			return;

		ctrl.eContents.checkStatementList(null)
	}

@@ -76,7 +82,6 @@ class LogValidator extends AbstractDeclarativeValidator {
				log = s.findLogStatement
			}
			if (log != null) {
				node = NodeModelUtils.getNode(log)
				if (other) {
					if (statementToCheck != null) {
						statementToCheck.checkLogStatementFormat(node, parent)
@@ -85,6 +90,8 @@ class LogValidator extends AbstractDeclarativeValidator {
					statementToCheck = null
				}

				node = NodeModelUtils.getNode(log)

				if (statementToCheck == null)
					statementToCheck = "";