我尝试使用包含希伯来字符的路径创建DbxEntry对象,但它不起作用。 它给了我" nullPointerException",以下是我尝试使用main函数运行的代码示例:
public static void example(String s) throws IOException, DbxException{
auth();
DbxEntry a = client.getMetadata(s);
System.out.println(a.name);
}
public static void main(String [] args) throws IOException, DbxException{
System.out.println("First example: ");
example("/Public");
System.out.println("Working..");
System.out.println("Second example: ");
example("/לשום");
}
输出是: 第一个例子: 关联帐户:Itay Velner 上市 工作.. 第二个例子: 关联帐户:Itay Velner
Exception in thread "main" java.lang.NullPointerException
at node.Main.example(Main.java:137)
at node.Main.main(Main.java:145)
我试图在网上寻求帮助,但我还没有找到任何帮助。如果我将希伯来字符串转换为unicode,它仍然无法正常工作。 我认为api存在一些问题,
有什么想法吗?
谢谢, 伊泰。