</BUG>
callback.onFailure(new RuntimeException("No DocumentId"));
return;
}
<BUG>dispatcher.execute(new GetTransUnits(currentDocumentId, workspaceContext.getLocaleId(), startRow, numRows), new AsyncCallback<GetTransUnitsResult>() {
</BUG>
@Override
public void onSuccess(GetTransUnitsResult result) {
SerializableResponse<TransUnit> response = new SerializableResponse<TransUnit>(
result.getUnits());

final Request request,
final Callback<TransUnit> callback) {
int numRows = request.getNumRows();
int startRow = request.getStartRow();
Log.debug("Table requesting" + numRows + " starting from "+ startRow);
if(documentId == null){
callback.onFailure(new RuntimeException("No DocumentId"));
return;
}
dispatcher.execute(new GetTransUnits(documentId, workspaceContext.getLocaleId(), startRow, numRows), new AsyncCallback<GetTransUnitsResult>() {
@Override
public void onSuccess(GetTransUnitsResult result) {
SerializableResponse<TransUnit> response = new SerializableResponse<TransUnit>(
result.getUnits());
