Example

public static class ClassA {
Condition c;
boolean flag;
public void methodA {
if(flag) {
try {
c.await();
} catch ( Exception e ) {
}
//...
}
}

}
Solution
Place await() ina while loop.

public static class ClassA {
Condition c;
boolean flag;
public void methodA {
while(flag) {
try {
c.await();
} catch ( Exception e ) {
}
//...
}
}

}