Commit 444c9eff authored by obscuren's avatar obscuren

Check data length

parent ded013b7
...@@ -106,7 +106,6 @@ Rectangle { ...@@ -106,7 +106,6 @@ Rectangle {
} }
} }
} }
} }
Menu { Menu {
......
...@@ -43,7 +43,6 @@ ApplicationWindow { ...@@ -43,7 +43,6 @@ ApplicationWindow {
// Takes care of loading all default plugins // Takes care of loading all default plugins
Component.onCompleted: { Component.onCompleted: {
var walletView = addPlugin("./views/wallet.qml", {noAdd: true, section: "ethereum", active: true}) 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 newTxView = addPlugin("./views/transaction.qml", {noAdd: true, section: "legacy"})
var chainView = addPlugin("./views/chain.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"}) var infoView = addPlugin("./views/info.qml", {noAdd: true, section: "legacy"})
......
...@@ -53,7 +53,7 @@ func (self *UiLib) LookupDomain(domain string) string { ...@@ -53,7 +53,7 @@ func (self *UiLib) LookupDomain(domain string) string {
data := world.Config().Get("DnsReg").StorageString(domain).Bytes() data := world.Config().Get("DnsReg").StorageString(domain).Bytes()
// Left padded = A record, Right padded = CNAME // Left padded = A record, Right padded = CNAME
if data[0] == 0 { if len(data) > 0 && data[0] == 0 {
data = bytes.TrimLeft(data, "\x00") data = bytes.TrimLeft(data, "\x00")
var ipSlice []string var ipSlice []string
for _, d := range data { for _, d := range data {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment