Ok, thanks for the fix!

On Thu, Feb 28, 2013 at 7:10 PM, Julius Gawlas <[email protected]> wrote:
>
> Signed-off-by: Julius Gawlas <[email protected]>
> ---
>  frontend/client/src/autotest/afe/HostTable.java |    8 +++++---
>  1 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/frontend/client/src/autotest/afe/HostTable.java 
> b/frontend/client/src/autotest/afe/HostTable.java
> index 63d1caa..65019bc 100644
> --- a/frontend/client/src/autotest/afe/HostTable.java
> +++ b/frontend/client/src/autotest/afe/HostTable.java
> @@ -27,8 +27,10 @@ public class HostTable extends DynamicTable {
>      @Override
>      protected void preprocessRow(JSONObject host) {
>         // break labels column into separate lines if longer than some limit
> -       String otherLabels = 
> Utils.jsonToString(host.get(HostDataSource.OTHER_LABELS));
> -               host.put(HostDataSource.OTHER_LABELS,
> -                               new 
> JSONString(Utils.splitIntoLines(otherLabels, MAX_LABELS_COLUMN_WIDTH)));
> +       if ( host.containsKey(HostDataSource.OTHER_LABELS) ) {
> +               String otherLabels = 
> Utils.jsonToString(host.get(HostDataSource.OTHER_LABELS));
> +                       host.put(HostDataSource.OTHER_LABELS,
> +                                       new 
> JSONString(Utils.splitIntoLines(otherLabels, MAX_LABELS_COLUMN_WIDTH)));
> +       }
>      }
>  }
> --
> 1.7.7.6
>
> _______________________________________________
> Autotest-kernel mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/autotest-kernel



-- 
Lucas

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to