aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-23 21:30:23 +0800
committerobscuren <geffobscura@gmail.com>2014-08-23 21:30:23 +0800
commit444c9effdb2458d7130be5a5e1cad1d719c67114 (patch)
tree89993f0fc86194c67168ded0bf8467f713cc4610 /ethereal
parentded013b7a7367f74b9c854755a7ce4a6955e93c0 (diff)
downloadgo-tangerine-444c9effdb2458d7130be5a5e1cad1d719c67114.tar
go-tangerine-444c9effdb2458d7130be5a5e1cad1d719c67114.tar.gz
go-tangerine-444c9effdb2458d7130be5a5e1cad1d719c67114.tar.bz2
go-tangerine-444c9effdb2458d7130be5a5e1cad1d719c67114.tar.lz
go-tangerine-444c9effdb2458d7130be5a5e1cad1d719c67114.tar.xz
go-tangerine-444c9effdb2458d7130be5a5e1cad1d719c67114.tar.zst
go-tangerine-444c9effdb2458d7130be5a5e1cad1d719c67114.zip
Check data length
Diffstat (limited to 'ethereal')
-rw-r--r--ethereal/assets/qml/views/info.qml1
-rw-r--r--ethereal/assets/qml/wallet.qml1
-rw-r--r--ethereal/ui_lib.go2
3 files changed, 1 insertions, 3 deletions
diff --git a/ethereal/assets/qml/views/info.qml b/ethereal/assets/qml/views/info.qml
index 9ac2a1a09..8a1d4d84a 100644
--- a/ethereal/assets/qml/views/info.qml
+++ b/ethereal/assets/qml/views/info.qml
@@ -106,7 +106,6 @@ Rectangle {
}
}
}
-
}
Menu {
diff --git a/ethereal/assets/qml/wallet.qml b/ethereal/assets/qml/wallet.qml
index 90cc42a1f..ed527ced7 100644
--- a/ethereal/assets/qml/wallet.qml
+++ b/ethereal/assets/qml/wallet.qml
@@ -43,7 +43,6 @@ ApplicationWindow {
// Takes care of loading all default plugins
Component.onCompleted: {
var walletView = addPlugin("./views/wallet.qml", {noAdd: true, section: "ethereum", active: true})
- var historyView = addPlugin("./views/history.qml", {noAdd: true, section: "legacy"})
var newTxView = addPlugin("./views/transaction.qml", {noAdd: true, section: "legacy"})
var chainView = addPlugin("./views/chain.qml", {noAdd: true, section: "legacy"})
var infoView = addPlugin("./views/info.qml", {noAdd: true, section: "legacy"})
diff --git a/ethereal/ui_lib.go b/ethereal/ui_lib.go
index 4b8210da6..fa09751e1 100644
--- a/ethereal/ui_lib.go
+++ b/ethereal/ui_lib.go
@@ -53,7 +53,7 @@ func (self *UiLib) LookupDomain(domain string) string {
data := world.Config().Get("DnsReg").StorageString(domain).Bytes()
// Left padded = A record, Right padded = CNAME
- if data[0] == 0 {
+ if len(data) > 0 && data[0] == 0 {
data = bytes.TrimLeft(data, "\x00")
var ipSlice []string
for _, d := range data {