Browse Source

plugins: return empty tables array insteaf of nil

bergquist 8 years ago
parent
commit
56d5ece340
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pkg/plugins/datasource/wrapper/datasource_plugin_wrapper.go

+ 1 - 0
pkg/plugins/datasource/wrapper/datasource_plugin_wrapper.go

@@ -71,6 +71,7 @@ func (tw *DatasourcePluginWrapper) Query(ctx context.Context, ds *models.DataSou
 		qr := &tsdb.QueryResult{
 		qr := &tsdb.QueryResult{
 			RefId:  r.RefId,
 			RefId:  r.RefId,
 			Series: []*tsdb.TimeSeries{},
 			Series: []*tsdb.TimeSeries{},
+			Tables: []*tsdb.Table{},
 		}
 		}
 
 
 		if r.Error != "" {
 		if r.Error != "" {